Skip to main content

GetKeyValueMut

Trait GetKeyValueMut 

Source
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§

Source

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".

Implementors§