pub trait GetMut {
type Error;
type Input;
type Output<'output>
where Self: 'output;
// Required method
fn get_mut(
&mut self,
input: Self::Input,
) -> Result<Self::Output<'_>, Self::Error>;
}Expand description
See GetMut::get_mut for more information.
Required Associated Types§
Required Methods§
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.
Implementations on Foreign Types§
Source§impl<T> GetMut for &mut [T]
let mut structure = cl_aux::doc_tests::slice_mut!();
assert_eq!(cl_aux::GetMut::get_mut(&mut structure, 0), Ok(&mut 1));
impl<T> GetMut for &mut [T]
let mut structure = cl_aux::doc_tests::slice_mut!();
assert_eq!(cl_aux::GetMut::get_mut(&mut structure, 0), Ok(&mut 1));Source§impl<T, const N: usize> GetMut for [T; N]
let mut structure = cl_aux::doc_tests::array();
assert_eq!(cl_aux::GetMut::get_mut(&mut structure, 0), Ok(&mut 1));
impl<T, const N: usize> GetMut for [T; N]
let mut structure = cl_aux::doc_tests::array();
assert_eq!(cl_aux::GetMut::get_mut(&mut structure, 0), Ok(&mut 1));