Struct rkyv::niche::option_nonzero::ArchivedOptionNonZeroI64   
source · [−]#[repr(transparent)]pub struct ArchivedOptionNonZeroI64 { /* private fields */ }Expand description
A niched archived Option<NonZeroI64>
Implementations
sourceimpl ArchivedOptionNonZeroI64
 
impl ArchivedOptionNonZeroI64
sourcepub fn as_ref(&self) -> Option<&Archived<NonZeroI64>>
 
pub fn as_ref(&self) -> Option<&Archived<NonZeroI64>>
Converts to an Option<&Archived<NonZeroI64>>
sourcepub fn as_mut(&mut self) -> Option<&mut Archived<NonZeroI64>>
 
pub fn as_mut(&mut self) -> Option<&mut Archived<NonZeroI64>>
Converts to an Option<&mut Archived<NonZeroI64>>
sourcepub fn as_pin_ref(self: Pin<&Self>) -> Option<Pin<&Archived<NonZeroI64>>>
 
pub fn as_pin_ref(self: Pin<&Self>) -> Option<Pin<&Archived<NonZeroI64>>>
Converts from Pin<&ArchivedOptionNonZeroI64> to Option<Pin<&Archived<NonZeroI64>>>.
sourcepub fn as_pin_mut(
    self: Pin<&mut Self>
) -> Option<Pin<&mut Archived<NonZeroI64>>>
 
pub fn as_pin_mut(
    self: Pin<&mut Self>
) -> Option<Pin<&mut Archived<NonZeroI64>>>
Converts from Pin<&mut ArchivedOptionNonZeroI64> to Option<Pin<&mut Archived<NonZeroI64>>>.
sourcepub fn iter(&self) -> Iter<'_, Archived<NonZeroI64>>
 
pub fn iter(&self) -> Iter<'_, Archived<NonZeroI64>>
Returns an iterator over the possibly contained value.
sourcepub fn iter_mut(&mut self) -> IterMut<'_, Archived<NonZeroI64>>
 
pub fn iter_mut(&mut self) -> IterMut<'_, Archived<NonZeroI64>>
Returns a mutable iterator over the possibly contained value.
sourcepub fn get_or_insert(&mut self, v: NonZeroI64) -> &mut Archived<NonZeroI64>
 
pub fn get_or_insert(&mut self, v: NonZeroI64) -> &mut Archived<NonZeroI64>
Inserts v into the option if it is None, then returns a mutable
reference to the contained value.
sourcepub fn get_or_insert_with<F: FnOnce() -> NonZeroI64>(
    &mut self, 
    f: F
) -> &mut Archived<NonZeroI64>
 
pub fn get_or_insert_with<F: FnOnce() -> NonZeroI64>(
    &mut self, 
    f: F
) -> &mut Archived<NonZeroI64>
Inserts a value computed from f into the option if it is None, then
returns a mutable reference to the contained value.
sourcepub unsafe fn resolve_from_option(field: Option<NonZeroI64>, out: *mut Self)
 
pub unsafe fn resolve_from_option(field: Option<NonZeroI64>, out: *mut Self)
Resolves an ArchivedOptionNonZero from an Option<NonZero>.
Safety
- posmust be the position of- outwithin the archive
Trait Implementations
sourceimpl Debug for ArchivedOptionNonZeroI64
 
impl Debug for ArchivedOptionNonZeroI64
sourceimpl<D: Fallible + ?Sized> DeserializeWith<ArchivedOptionNonZeroI64, Option<NonZeroI64>, D> for Niche
 
impl<D: Fallible + ?Sized> DeserializeWith<ArchivedOptionNonZeroI64, Option<NonZeroI64>, D> for Niche
sourcefn deserialize_with(
    field: &ArchivedOptionNonZeroI64, 
    _: &mut D
) -> Result<Option<NonZeroI64>, D::Error>
 
fn deserialize_with(
    field: &ArchivedOptionNonZeroI64, 
    _: &mut D
) -> Result<Option<NonZeroI64>, D::Error>
Deserializes the field type F using the given deserializer.
sourceimpl Hash for ArchivedOptionNonZeroI64
 
impl Hash for ArchivedOptionNonZeroI64
sourceimpl Ord for ArchivedOptionNonZeroI64
 
impl Ord for ArchivedOptionNonZeroI64
sourceimpl PartialOrd<ArchivedOptionNonZeroI64> for ArchivedOptionNonZeroI64
 
impl PartialOrd<ArchivedOptionNonZeroI64> for ArchivedOptionNonZeroI64
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
 
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
 
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn 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 more
impl Eq for ArchivedOptionNonZeroI64
Auto Trait Implementations
impl RefUnwindSafe for ArchivedOptionNonZeroI64
impl Send for ArchivedOptionNonZeroI64
impl Sync for ArchivedOptionNonZeroI64
impl Unpin for ArchivedOptionNonZeroI64
impl UnwindSafe for ArchivedOptionNonZeroI64
Blanket Implementations
sourceimpl<T> ArchivePointee for T
 
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
sourcefn pointer_metadata(_: &Self::ArchivedMetadata) -> <Self as Pointee>::Metadata
 
fn pointer_metadata(_: &Self::ArchivedMetadata) -> <Self as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
 
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more