pub trait CustomProperty:
Any
+ Send
+ Sync {
// Required methods
fn get_key(&self, key: &str) -> Option<Dynamic>;
fn set_key(&self, key: &str, value: Dynamic) -> bool;
// Provided method
fn contains_key(&self, key: &str) -> bool { ... }
}Required Methods§
fn get_key(&self, key: &str) -> Option<Dynamic>
fn set_key(&self, key: &str, value: Dynamic) -> bool
Provided Methods§
fn contains_key(&self, key: &str) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".