pub trait ValuesCollection {
type Key;
type Value;
// Required methods
fn get_mut(&mut self, key: &Self::Key) -> Option<&mut Self::Value>;
fn get(&self, key: &Self::Key) -> Option<&Self::Value>;
fn remove(
&mut self,
key_to_remove: impl Into<Self::Key>,
) -> Option<Self::Value>;
}Required Associated Types§
Required Methods§
fn get_mut(&mut self, key: &Self::Key) -> Option<&mut Self::Value>
fn get(&self, key: &Self::Key) -> Option<&Self::Value>
fn remove(&mut self, key_to_remove: impl Into<Self::Key>) -> Option<Self::Value>
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.