Enum hime_redist::utils::EitherMut
[−]
[src]
pub enum EitherMut<'a, T: 'a> { Immutable(&'a T), Mutable(&'a mut T), }
Represents a reference to a structure that can be either mutable or immutable
Variants
Immutable(&'a T)
The immutable reference
Mutable(&'a mut T)
The mutable reference
Methods
impl<'a, T: 'a> EitherMut<'a, T>
[src]
pub fn get_mut(&mut self) -> Option<&mut T>
[src]
Gets a mutable reference
pub fn get(&self) -> &T
[src]
Get an immutable reference