Struct rkyv::niche::option_nonzero::ArchivedOptionNonZeroI8
source · pub struct ArchivedOptionNonZeroI8 { /* private fields */ }
Expand description
A niched archived Option<NonZeroI8>
Implementations§
source§impl ArchivedOptionNonZeroI8
impl ArchivedOptionNonZeroI8
sourcepub fn as_ref(&self) -> Option<&Archived<NonZeroI8>>
pub fn as_ref(&self) -> Option<&Archived<NonZeroI8>>
Converts to an Option<&Archived<NonZeroI8>>
sourcepub fn as_mut(&mut self) -> Option<&mut Archived<NonZeroI8>>
pub fn as_mut(&mut self) -> Option<&mut Archived<NonZeroI8>>
Converts to an Option<&mut Archived<NonZeroI8>>
sourcepub fn as_pin_ref(self: Pin<&Self>) -> Option<Pin<&Archived<NonZeroI8>>>
pub fn as_pin_ref(self: Pin<&Self>) -> Option<Pin<&Archived<NonZeroI8>>>
Converts from Pin<&ArchivedOptionNonZeroI8>
to Option<Pin<&Archived<NonZeroI8>>>
.
sourcepub fn as_pin_mut(self: Pin<&mut Self>) -> Option<Pin<&mut Archived<NonZeroI8>>>
pub fn as_pin_mut(self: Pin<&mut Self>) -> Option<Pin<&mut Archived<NonZeroI8>>>
Converts from Pin<&mut ArchivedOptionNonZeroI8>
to Option<Pin<&mut Archived<NonZeroI8>>>
.
sourcepub fn iter(&self) -> Iter<'_, Archived<NonZeroI8>>
pub fn iter(&self) -> Iter<'_, Archived<NonZeroI8>>
Returns an iterator over the possibly contained value.
sourcepub fn iter_mut(&mut self) -> IterMut<'_, Archived<NonZeroI8>>
pub fn iter_mut(&mut self) -> IterMut<'_, Archived<NonZeroI8>>
Returns a mutable iterator over the possibly contained value.
sourcepub fn get_or_insert(&mut self, v: NonZeroI8) -> &mut Archived<NonZeroI8>
pub fn get_or_insert(&mut self, v: NonZeroI8) -> &mut Archived<NonZeroI8>
Inserts v
into the option if it is None
, then returns a mutable
reference to the contained value.
Trait Implementations§
source§impl Debug for ArchivedOptionNonZeroI8
impl Debug for ArchivedOptionNonZeroI8
source§impl<D: Fallible + ?Sized> DeserializeWith<ArchivedOptionNonZeroI8, Option<NonZero<i8>>, D> for Niche
impl<D: Fallible + ?Sized> DeserializeWith<ArchivedOptionNonZeroI8, Option<NonZero<i8>>, D> for Niche
source§fn deserialize_with(
field: &ArchivedOptionNonZeroI8,
_: &mut D,
) -> Result<Option<NonZeroI8>, D::Error>
fn deserialize_with( field: &ArchivedOptionNonZeroI8, _: &mut D, ) -> Result<Option<NonZeroI8>, D::Error>
Deserializes the field type
F
using the given deserializer.source§impl Hash for ArchivedOptionNonZeroI8
impl Hash for ArchivedOptionNonZeroI8
source§impl Ord for ArchivedOptionNonZeroI8
impl Ord for ArchivedOptionNonZeroI8
source§impl PartialEq for ArchivedOptionNonZeroI8
impl PartialEq for ArchivedOptionNonZeroI8
source§impl PartialOrd for ArchivedOptionNonZeroI8
impl PartialOrd for ArchivedOptionNonZeroI8
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 Eq for ArchivedOptionNonZeroI8
Auto Trait Implementations§
impl Freeze for ArchivedOptionNonZeroI8
impl RefUnwindSafe for ArchivedOptionNonZeroI8
impl Send for ArchivedOptionNonZeroI8
impl Sync for ArchivedOptionNonZeroI8
impl Unpin for ArchivedOptionNonZeroI8
impl UnwindSafe for ArchivedOptionNonZeroI8
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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