pub struct OptionWrapper<'a, C: BatchContainer> { /* private fields */ }
Expand description
A read wrapper capable of cheaply representing a default value.
Trait Implementations§
source§impl<'a, C: BatchContainer> Clone for OptionWrapper<'a, C>
impl<'a, C: BatchContainer> Clone for OptionWrapper<'a, C>
source§impl<'a, C: BatchContainer> MyTrait<'a> for OptionWrapper<'a, C>
impl<'a, C: BatchContainer> MyTrait<'a> for OptionWrapper<'a, C>
§type Owned = <C as BatchContainer>::PushItem
type Owned = <C as BatchContainer>::PushItem
Owned type into which this type can be converted.
source§fn into_owned(self) -> Self::Owned
fn into_owned(self) -> Self::Owned
Conversion from an instance of this type to the owned type.
fn clone_onto(&self, other: &mut Self::Owned)
source§fn compare(&self, other: &Self::Owned) -> Ordering
fn compare(&self, other: &Self::Owned) -> Ordering
Indicates that
self <= other
; used for sorting.source§fn less_equals(&self, other: &Self::Owned) -> bool
fn less_equals(&self, other: &Self::Owned) -> bool
self <= other
source§impl<'a, C: BatchContainer> Ord for OptionWrapper<'a, C>
impl<'a, C: BatchContainer> Ord for OptionWrapper<'a, C>
source§impl<'a, 'b, C: BatchContainer> PartialEq<OptionWrapper<'a, C>> for OptionWrapper<'b, C>
impl<'a, 'b, C: BatchContainer> PartialEq<OptionWrapper<'a, C>> for OptionWrapper<'b, C>
source§fn eq(&self, other: &OptionWrapper<'a, C>) -> bool
fn eq(&self, other: &OptionWrapper<'a, C>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a, 'b, C: BatchContainer> PartialOrd<OptionWrapper<'a, C>> for OptionWrapper<'b, C>
impl<'a, 'b, C: BatchContainer> PartialOrd<OptionWrapper<'a, C>> for OptionWrapper<'b, C>
source§fn partial_cmp(&self, other: &OptionWrapper<'a, C>) -> Option<Ordering>
fn partial_cmp(&self, other: &OptionWrapper<'a, C>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<'a, C: BatchContainer> Copy for OptionWrapper<'a, C>
impl<'a, C: BatchContainer> Eq for OptionWrapper<'a, C>
Auto Trait Implementations§
impl<'a, C> Freeze for OptionWrapper<'a, C>
impl<'a, C> RefUnwindSafe for OptionWrapper<'a, C>
impl<'a, C> Send for OptionWrapper<'a, C>
impl<'a, C> Sync for OptionWrapper<'a, C>
impl<'a, C> Unpin for OptionWrapper<'a, C>
impl<'a, C> UnwindSafe for OptionWrapper<'a, C>
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<R, O, T> CopyOnto<ConsecutiveOffsetPairs<R, O>> for T
impl<R, O, T> CopyOnto<ConsecutiveOffsetPairs<R, O>> for T
source§fn copy_onto(
self,
target: &mut ConsecutiveOffsetPairs<R, O>
) -> <ConsecutiveOffsetPairs<R, O> as Region>::Index
fn copy_onto( self, target: &mut ConsecutiveOffsetPairs<R, O> ) -> <ConsecutiveOffsetPairs<R, O> as Region>::Index
Copy self into the target container, returning an index that allows to
look up the corresponding read item.