Struct efficient_enum::option::EfficientOptionTupleInnerSome
[−]
[src]
pub struct EfficientOptionTupleInnerSome<'a, A: 'a, B: 'a, TM: 'a = TagMSB>(_)
where
A: TaggableValue<TM, Two>;
A helper type useful for accessing the optional data or removing it without having to use unwraps.
Methods
impl<'a, TM, A, B> EfficientOptionTupleInnerSome<'a, A, B, TM> where
A: TaggableValue<TM, Two>,
[src]
A: TaggableValue<TM, Two>,
fn clone_0(&self) -> A where
A: Clone,
A: Clone,
Clones the A
value
fn clone_1(&self) -> B where
B: Clone,
B: Clone,
Clones the B
value
fn ref_1(&self) -> &B
Gets a reference to the B
value
fn mut_1(&mut self) -> &mut B
Gets mutable a reference to the B
value
fn destructure_1(self) -> &'a mut B
Destructures an EfficientOptionTupleInnerSome
into a mutable reference to the B
value
fn replace_0(&mut self, a: A) -> A
Replaces the A
value
fn remove_1(self) -> (EfficientOptionTupleInnerNone<'a, A, B, TM>, B)
Removes the B
value
fn map<R, F: FnOnce(&mut A, &mut B) -> R>(&mut self, f: F) -> R
Maps the A
and B
values to a result