Skip to main content

CustomProperty

Trait CustomProperty 

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

Source

fn get_key(&self, key: &str) -> Option<Dynamic>

Source

fn set_key(&self, key: &str, value: Dynamic) -> bool

Provided Methods§

Source

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".

Implementors§