pub trait MapFeature: Serialize + DeserializeOwned {
// Provided method
fn problem(&self) -> Option<String> { ... }
}Expand description
A game’s tile feature, as written in a map header after the tile’s
(x, y) (a shop, a chest, a sign): the hook through which a game adds
its own things to the format.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".