pub trait AttrSet: Send + Sync {
// Required methods
fn get(&self, key: &str) -> Option<&str>;
fn get_list(&self, key: &str) -> Option<Vec<&str>>;
// Provided methods
fn has(&self, key: &str, value: &str) -> bool { ... }
fn contains(&self, key: &str, value: &str) -> bool { ... }
}Expand description
Attribute set trait - all objects implement this
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".