Enum rkyv::option::ArchivedOption [−][src]
#[repr(u8)]
pub enum ArchivedOption<T> {
None,
Some(T),
}Expand description
Variants
None
No value
Some(T)
Some value T
Implementations
Converts from Pin<&ArchivedOption<T>> to Option<Pin<&T>>.
Converts from Pin<&mut ArchivedOption<T>> to Option<Pin<&mut T>>.
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.
Inserts a value computed from f into the option if it is None, then
returns a mutable reference to the contained value.
Converts from &mut ArchivedOption<T> to Option<&mut T::Target>.
Leaves the original ArchivedOption in-place, creating a new Option with a mutable
reference to the inner type’s Deref::Target type.
Trait Implementations
impl<T: Archive, D: Fallible + ?Sized> Deserialize<Option<T>, D> for ArchivedOption<T::Archived> where
T::Archived: Deserialize<T, D>,
impl<T: Archive, D: Fallible + ?Sized> Deserialize<Option<T>, D> for ArchivedOption<T::Archived> where
T::Archived: Deserialize<T, D>,
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<T> RefUnwindSafe for ArchivedOption<T> where
T: RefUnwindSafe,
impl<T> Send for ArchivedOption<T> where
T: Send,
impl<T> Sync for ArchivedOption<T> where
T: Sync,
impl<T> Unpin for ArchivedOption<T> where
T: Unpin,
impl<T> UnwindSafe for ArchivedOption<T> where
T: UnwindSafe,
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