Enum microkelvin::MaybeStored
source ·
[−]Expand description
Wrapper around a value either in memory or in a store
Variants
Memory(&'a T)
Tuple Fields
0: &'a T
The value is memory
Stored(&'a Stored<T, I>)
Tuple Fields
0: &'a Stored<T, I>
The value is in a store
Auto Trait Implementations
impl<'a, T, I> !RefUnwindSafe for MaybeStored<'a, T, I>
impl<'a, T, I> Send for MaybeStored<'a, T, I> where
I: Sync,
T: Sync,
impl<'a, T, I> Sync for MaybeStored<'a, T, I> where
I: Sync,
T: Sync,
impl<'a, T, I> Unpin for MaybeStored<'a, T, I>
impl<'a, T, I> !UnwindSafe for MaybeStored<'a, T, I>
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.