TryAsMut

Trait TryAsMut 

Source
pub trait TryAsMut<T: ?Sized> {
    type Error;

    // Required method
    fn try_as_mut(&mut self) -> Result<&mut T, Self::Error>;
}
Expand description

The try trait for AsMut.

Required Associated Types§

Source

type Error

The type returned in the event of an error.

Required Methods§

Source

fn try_as_mut(&mut self) -> Result<&mut T, Self::Error>

The fallible equivalent of AsMut::as_mut.

Implementors§