Struct controlled_option::ControlledOption [−][src]
#[repr(transparent)]pub struct ControlledOption<T> where
T: Niche, { /* fields omitted */ }Expand description
An Option type where you have control over the in-memory representation of the None and
Some variants. See the module-level documentation for more information.
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
Performs the conversion.
Performs the conversion.
impl<T> PartialEq<ControlledOption<T>> for ControlledOption<T> where
T: Niche,
T::Output: PartialEq,
impl<T> PartialEq<ControlledOption<T>> for ControlledOption<T> where
T: Niche,
T::Output: PartialEq,
impl<T> PartialOrd<ControlledOption<T>> for ControlledOption<T> where
T: Niche,
T::Output: PartialOrd,
impl<T> PartialOrd<ControlledOption<T>> for ControlledOption<T> where
T: Niche,
T::Output: PartialOrd,
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for ControlledOption<T> where
<T as Niche>::Output: RefUnwindSafe,
impl<T> Send for ControlledOption<T> where
<T as Niche>::Output: Send,
impl<T> Sync for ControlledOption<T> where
<T as Niche>::Output: Sync,
impl<T> Unpin for ControlledOption<T> where
<T as Niche>::Output: Unpin,
impl<T> UnwindSafe for ControlledOption<T> where
<T as Niche>::Output: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more