pub trait KeyedAccess<Q: ?Sized> {
type Value;
// Required method
fn get(&self, key: &Q) -> Option<&Self::Value>;
// Provided method
fn contains_key(&self, key: &Q) -> bool { ... }
}Required Associated Types§
Required Methods§
Provided Methods§
fn contains_key(&self, key: &Q) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".