pub struct Absent;Expand description
Marker indicating a field is absent (PhantomData).
Trait Implementations§
Source§impl Presence for Absent
impl Presence for Absent
Source§type OptionOrSelf = Optional
type OptionOrSelf = Optional
The presence state when combined with an Option.
Source§type RemainderFrom<Source: Presence> = Source
type RemainderFrom<Source: Presence> = Source
What remains from
Source when extracting Self. Present/Optional → Absent; Absent → Source.Source§type Output<T> = PhantomData<T>
type Output<T> = PhantomData<T>
The container type for values with this presence (T, Option<T>, or
PhantomData<T>).Source§fn or<T, Other: Presence>(
_self: <Self as Presence>::Output<T>,
other: Other::Output<T>,
) -> <<Self as Presence>::Or<Other> as Presence>::Output<T>
fn or<T, Other: Presence>( _self: <Self as Presence>::Output<T>, other: Other::Output<T>, ) -> <<Self as Presence>::Or<Other> as Presence>::Output<T>
Merge two values, preferring the first if present.
Source§fn option_or_self<T>(
option: Option<T>,
_self_: <Self as Presence>::Output<T>,
) -> <<Self as Presence>::OptionOrSelf as Presence>::Output<T>
fn option_or_self<T>( option: Option<T>, _self_: <Self as Presence>::Output<T>, ) -> <<Self as Presence>::OptionOrSelf as Presence>::Output<T>
Convert an Option into the appropriate presence state.
Source§impl Split<Absent> for Absent
impl Split<Absent> for Absent
Source§fn split<T>(_value: PhantomData<T>) -> (PhantomData<T>, PhantomData<T>)
fn split<T>(_value: PhantomData<T>) -> (PhantomData<T>, PhantomData<T>)
Split a value into selected and remainder parts.
Auto Trait Implementations§
impl Freeze for Absent
impl RefUnwindSafe for Absent
impl Send for Absent
impl Sync for Absent
impl Unpin for Absent
impl UnwindSafe for Absent
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