pub trait TryAsMut<T: ?Sized> {
// Required method
fn try_as_mut(&mut self) -> Option<&mut T>;
}Expand description
Used to get a mutable reference of the inner type if possible.
Required Methods§
Sourcefn try_as_mut(&mut self) -> Option<&mut T>
fn try_as_mut(&mut self) -> Option<&mut T>
Tries to convert this type into a mutable reference of the (usually inferred) input type.