Struct rkyv::niche::option_nonzero::ArchivedOptionNonZeroU128 [−][src]
#[repr(transparent)]pub struct ArchivedOptionNonZeroU128 { /* fields omitted */ }Expand description
A niched archived Option<NonZeroU128>
Implementations
Converts to an Option<&Archived<NonZeroU128>>
Converts to an Option<&mut Archived<NonZeroU128>>
Converts from Pin<&ArchivedOptionNonZeroU128> to Option<Pin<&Archived<NonZeroU128>>>.
Converts from Pin<&mut ArchivedOptionNonZeroU128> to Option<Pin<&mut Archived<NonZeroU128>>>.
Returns an iterator over the possibly contained value.
Returns a mutable iterator over the possibly contained value.
Inserts v into the option if it is None, then returns a mutable
reference to the contained value.
pub fn get_or_insert_with<F: FnOnce() -> NonZeroU128>(
&mut self,
f: F
) -> &mut Archived<NonZeroU128>
pub fn get_or_insert_with<F: FnOnce() -> NonZeroU128>(
&mut self,
f: F
) -> &mut Archived<NonZeroU128>
Inserts a value computed from f into the option if it is None, then
returns a mutable reference to the contained value.
Resolves an ArchivedOptionNonZero from an Option<NonZero>.
Safety
posmust be the position ofoutwithin the archive
Trait Implementations
impl<D: Fallible + ?Sized> DeserializeWith<ArchivedOptionNonZeroU128, Option<NonZeroU128>, D> for Niche
impl<D: Fallible + ?Sized> DeserializeWith<ArchivedOptionNonZeroU128, Option<NonZeroU128>, D> for Niche
fn deserialize_with(
field: &ArchivedOptionNonZeroU128,
_: &mut D
) -> Result<Option<NonZeroU128>, D::Error>
fn deserialize_with(
field: &ArchivedOptionNonZeroU128,
_: &mut D
) -> Result<Option<NonZeroU128>, D::Error>
Deserializes the field type F using the given deserializer.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for ArchivedOptionNonZeroU128
impl Send for ArchivedOptionNonZeroU128
impl Sync for ArchivedOptionNonZeroU128
impl Unpin for ArchivedOptionNonZeroU128
impl UnwindSafe for ArchivedOptionNonZeroU128
Blanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more