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§
Sourcefn try_index_mut(
&mut self,
index: Idx,
) -> Result<&mut Self::Output, Self::Error>
fn try_index_mut( &mut self, index: Idx, ) -> Result<&mut Self::Output, Self::Error>
The fallible equivalent of Index::index
.