pub enum WrapNonDefaultValueInOption {}
Trait Implementations§
source§impl<V> ValueStorage<V> for WrapNonDefaultValueInOption
impl<V> ValueStorage<V> for WrapNonDefaultValueInOption
type Slot = Option<V>
type LazyBox<T> = Option<Box<T>>
fn slot_unwrap(slot: Option<V>) -> V
fn slot_unwrap_ref(slot: &Option<V>) -> &V
fn slot_unwrap_mut(slot: &mut Option<V>) -> &mut V
fn slot_insert(slot: &mut Option<V>, v: V) -> &mut V
fn lazy_box_default<T>(_: impl Fn() -> T) -> Option<Box<T>>
fn lazy_box_unwrap_ref<T>(lb: &Option<Box<T>>) -> &T
fn lazy_box_unwrap_mut_or_alloc<T>( lb: &mut Option<Box<T>>, default: impl Fn() -> T, ) -> &mut T
Auto Trait Implementations§
impl Freeze for WrapNonDefaultValueInOption
impl RefUnwindSafe for WrapNonDefaultValueInOption
impl Send for WrapNonDefaultValueInOption
impl Sync for WrapNonDefaultValueInOption
impl Unpin for WrapNonDefaultValueInOption
impl UnwindSafe for WrapNonDefaultValueInOption
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more