pub trait Map {
type Value: Value;
// Required methods
fn iter(&self) -> impl Iterator<Item = (&str, &Self::Value)>;
fn get(&self, key: &str) -> Option<&Self::Value>;
fn contains_key(&self, key: &str) -> bool;
}
Required Associated Types§
Required Methods§
fn iter(&self) -> impl Iterator<Item = (&str, &Self::Value)>
fn get(&self, key: &str) -> Option<&Self::Value>
fn contains_key(&self, key: &str) -> bool
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.