Skip to main content

MapFeature

Trait MapFeature 

Source
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§

Source

fn problem(&self) -> Option<String>

A problem visible in the file alone, if the feature has one.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§