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§
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>)
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.