TryIndexMut

Trait TryIndexMut 

Source
pub trait TryIndexMut<Idx>: TryIndex<Idx> {
    // Required method
    fn try_index_mut(
        &mut self,
        index: Idx,
    ) -> Result<&mut Self::Output, Self::Error>;
}
Expand description

The try trait for IndexMut.

Required Methods§

Source

fn try_index_mut( &mut self, index: Idx, ) -> Result<&mut Self::Output, Self::Error>

The fallible equivalent of Index::index.

Implementors§

Source§

impl<T: IndexMut<Idx>, Idx> TryIndexMut<Idx> for T