Struct efficient_enum::option::EfficientOptionInnerSome [] [src]

pub struct EfficientOptionInnerSome<'a, A: 'a, B: 'a, TM: 'a = TagMSB>(_)
where
    A: TaggableValue<TM, One>
;

A helper type for EfficientOption, useful for accessing 'is_some' data and removing it.

Methods

impl<'a, TM, A, B> EfficientOptionInnerSome<'a, A, B, TM> where
    A: TaggableValue<TM, One>, 
[src]

Clones the A value

Clones the B value

Gets a reference to the A value

Gets a reference to the B value

Gets a reference to both the A and B values

Gets mutable a reference to the B value

Gets a reference to the A value and a mutable reference to the B value

Destructures an EfficientOptionInnerSome into a reference to the A value

Destructures an EfficientOptionInnerSome into a mutable reference to the B value

Destructures an EfficientOptionInnerSome

Replaces the A value

Replaces the B value

Takes both values out of the option, leaving a None in its place.

Takes both values out of the option, leaving a None in its place. The version only returns the A value

Takes both values out of the option, leaving a None in its place. The version only returns the B value

Maps the value to a result