Enum microkelvin::MaybeArchived
source ·
[−]Expand description
A wrapper around the actual type, or the archived version
Variants
Memory(&'a T)
Tuple Fields
0: &'a T
Reference to a value
Archived(&'a T::Archived)
Tuple Fields
0: &'a T::Archived
Reference to an archived value
Trait Implementations
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for MaybeArchived<'a, T> where
T: RefUnwindSafe,
<T as Archive>::Archived: RefUnwindSafe,
impl<'a, T> Unpin for MaybeArchived<'a, T>
impl<'a, T> UnwindSafe for MaybeArchived<'a, T> where
T: RefUnwindSafe,
<T as Archive>::Archived: RefUnwindSafe,
Blanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
Gets the layout of the type.