pub trait Property {
type Value;
// Required methods
fn try_from_block_state(state: BlockState) -> Option<Self::Value>;
fn to_static_str(&self) -> &'static str;
}
Required Associated Types§
Required Methods§
fn try_from_block_state(state: BlockState) -> Option<Self::Value>
Sourcefn to_static_str(&self) -> &'static str
fn to_static_str(&self) -> &'static str
Convert the value of the property to a string, like “x” or “true”.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.