pub trait GetKeyValueMut<T>: CollectionMut + KeyedRef {
// Required method
fn get_key_value_mut(
&mut self,
key: T,
) -> Option<(Self::KeyRef<'_>, Self::ItemMut<'_>)>;
}Expand description
Mutably queryable map.
Required Methods§
Sourcefn get_key_value_mut(
&mut self,
key: T,
) -> Option<(Self::KeyRef<'_>, Self::ItemMut<'_>)>
fn get_key_value_mut( &mut self, key: T, ) -> Option<(Self::KeyRef<'_>, Self::ItemMut<'_>)>
Returns the key-value pair matching the given key, with a mutable reference to the 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.