GetMut

Trait GetMut 

Source
pub trait GetMut<Idx: ?Sized>: Get<Idx> {
    // Required methods
    fn get_mut<K: Borrow<Idx>>(&mut self, index: K) -> Option<&mut Self::Output>;
    fn get2_mut<K: Borrow<Idx>>(
        &mut self,
        index1: K,
        index2: K,
    ) -> (Option<&mut Self::Output>, Option<&mut Self::Output>);
    fn get3_mut<K: Borrow<Idx>>(
        &mut self,
        index1: K,
        index2: K,
        index3: K,
    ) -> (Option<&mut Self::Output>, Option<&mut Self::Output>, Option<&mut Self::Output>);
}

Required Methods§

Source

fn get_mut<K: Borrow<Idx>>(&mut self, index: K) -> Option<&mut Self::Output>

Source

fn get2_mut<K: Borrow<Idx>>( &mut self, index1: K, index2: K, ) -> (Option<&mut Self::Output>, Option<&mut Self::Output>)

Source

fn get3_mut<K: Borrow<Idx>>( &mut self, index1: K, index2: K, index3: K, ) -> (Option<&mut Self::Output>, Option<&mut Self::Output>, Option<&mut Self::Output>)

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.

Implementors§

Source§

impl<'a, K: ?Sized + ToIndex, P, S: GetMut<K>> GetMut<K> for ViewMut<'a, K, P, S>
where S::Output: Project<P>,

Source§

impl<K: ?Sized + ToIndex, V, const N: usize> GetMut<K> for BitReclaimMap<K, V, N>

Source§

impl<K: ?Sized + ToIndex, V, const N: usize> GetMut<K> for IndexMap<K, V, N>

Source§

impl<T: Clone + Copy, const N: usize> GetMut<usize> for Vec<T, N>