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

Trait Implementations

impl<T> From<Option<Option<T>>> for OptionLoaned<T>
[src]

[src]

Performs the conversion.

impl<'a, T, M> From<Option<&'a Option<M>>> for OptionLoaned<&'a T> where
    M: Borrow<T>, 
[src]

[src]

Performs the conversion.

impl<'a, T, M> From<Option<&'a mut Option<M>>> for OptionLoaned<&'a mut T> where
    M: BorrowMut<T>, 
[src]

[src]

Performs the conversion.