Enum nitro::option_loaned::OptionLoaned
[−]
[src]
pub enum OptionLoaned<T> { Some(T), Loaned, None, }
Special variant of Option that indicates a value may exist but is currently loaned out in a &mut.
Variants
Some(T)
Loaned
None
Trait Implementations
impl<T> From<Option<Option<T>>> for OptionLoaned<T>
[src]
fn from(result: Option<Option<T>>) -> OptionLoaned<T>
[src]
Performs the conversion.
impl<'a, T, M> From<Option<&'a Option<M>>> for OptionLoaned<&'a T> where
M: Borrow<T>,
[src]
M: Borrow<T>,
impl<'a, T, M> From<Option<&'a mut Option<M>>> for OptionLoaned<&'a mut T> where
M: BorrowMut<T>,
[src]
M: BorrowMut<T>,