Trait device_tree::util::convert::AsMut [] [src]

pub trait AsMut<T> where T: ?Sized {
    fn as_mut(&mut self) -> &mut T;
}

A cheap, mutable reference-to-mutable reference conversion.

Note: this trait must not fail. If the conversion can fail, use a dedicated method which returns an Option<T> or a Result<T, E>.

Generic Impls

Required Methods

fn as_mut(&mut self) -> &mut T

Performs the conversion.

Implementors