Enum microkelvin::ARef
source ·
[−]Expand description
A wrapped annotation that is either owning its A or providing an annotated link
Variants
Owned(A)
The annotation is owned
Borrowed(&'a A)
Tuple Fields
0: &'a A
The annotation is a reference
Referenced(Ref<'a, Option<A>>)
Referenced
Trait Implementations
Auto Trait Implementations
impl<'a, A> !RefUnwindSafe for ARef<'a, A>
impl<'a, A> !UnwindSafe for ARef<'a, A>
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.