Skip to main content

EfficientOptionInnerNone

Struct EfficientOptionInnerNone 

Source
pub struct EfficientOptionInnerNone<'a, A, B: 'a, TM: 'a = TagMSB>(/* private fields */)
where
    A: TaggableValue<TM, One> + 'a;
Expand description

A helper type for EfficientOption, useful for adding data to is_none options.

Implementations§

Source§

impl<'a, TM, A, B> EfficientOptionInnerNone<'a, A, B, TM>
where A: TaggableValue<TM, One>,

Source

pub fn give(self, (a, b): (A, B)) -> EfficientOptionInnerSome<'a, A, B, TM>

Adds a value

Auto Trait Implementations§

§

impl<'a, A, B, TM = TagMSB> !UnwindSafe for EfficientOptionInnerNone<'a, A, B, TM>

§

impl<'a, A, B, TM> Freeze for EfficientOptionInnerNone<'a, A, B, TM>
where &'a mut EfficientOption<A, B, TM>: Freeze,

§

impl<'a, A, B, TM> RefUnwindSafe for EfficientOptionInnerNone<'a, A, B, TM>
where &'a mut EfficientOption<A, B, TM>: RefUnwindSafe,

§

impl<'a, A, B, TM> Send for EfficientOptionInnerNone<'a, A, B, TM>
where &'a mut EfficientOption<A, B, TM>: Send,

§

impl<'a, A, B, TM> Sync for EfficientOptionInnerNone<'a, A, B, TM>
where &'a mut EfficientOption<A, B, TM>: Sync,

§

impl<'a, A, B, TM> Unpin for EfficientOptionInnerNone<'a, A, B, TM>
where &'a mut EfficientOption<A, B, TM>: Unpin,

§

impl<'a, A, B, TM> UnsafeUnpin for EfficientOptionInnerNone<'a, A, B, TM>
where &'a mut EfficientOption<A, B, TM>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.