Trait has::HasMut [] [src]

pub trait HasMut<T>: Has<T> {
    fn get_mut(&mut self) -> &mut T;
}

Trait to model a "has a" relationship between implementing structs and the generic parameter provided. This trait provides methods to retrieve either a mutable or immutable reference to the contained object.

Required Methods

Implementors