Enum microkelvin::MaybeArchived
source · [−]Expand description
A wrapper around the actual type, or the archived version
Variants
Memory(&'a T)
Reference to a value
Archived(&'a T::Archived)
Reference to an archived value
Trait Implementations
sourceimpl<'a, KV, K> Keyed<K> for MaybeArchived<'a, KV> where
KV: Archive + Keyed<K>,
KV::Archived: Keyed<K>,
impl<'a, KV, K> Keyed<K> for MaybeArchived<'a, KV> where
KV: Archive + Keyed<K>,
KV::Archived: Keyed<K>,
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for MaybeArchived<'a, T> where
T: RefUnwindSafe,
<T as Archive>::Archived: RefUnwindSafe,
impl<'a, T> Send for MaybeArchived<'a, T> where
T: Sync,
<T as Archive>::Archived: Sync,
impl<'a, T> Sync for MaybeArchived<'a, T> where
T: Sync,
<T as Archive>::Archived: Sync,
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
sourceimpl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
sourcefn 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.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more