Enum microkelvin::ArchivedChild
source ·
[−]pub enum ArchivedChild<'a, C, A, I> where
C: Compound<A, I>, {
Leaf(&'a <C::Leaf as Archive>::Archived),
Link(&'a ArchivedLink<C, A, I>),
Empty,
End,
}
Expand description
The response of the child
method on a Compound
node.
Variants
Leaf(&'a <C::Leaf as Archive>::Archived)
Child is a leaf
Link(&'a ArchivedLink<C, A, I>)
Tuple Fields
0: &'a ArchivedLink<C, A, I>
Child is an annotated subtree node
Empty
Empty slot
End
No more children
Auto Trait Implementations
impl<'a, C, A, I> RefUnwindSafe for ArchivedChild<'a, C, A, I> where
A: RefUnwindSafe,
C: RefUnwindSafe,
I: RefUnwindSafe,
<<C as Compound<A, I>>::Leaf as Archive>::Archived: RefUnwindSafe,
impl<'a, C, A, I> Send for ArchivedChild<'a, C, A, I> where
A: Sync,
C: Sync,
I: Sync,
<<C as Compound<A, I>>::Leaf as Archive>::Archived: Sync,
impl<'a, C, A, I> Sync for ArchivedChild<'a, C, A, I> where
A: Sync,
C: Sync,
I: Sync,
<<C as Compound<A, I>>::Leaf as Archive>::Archived: Sync,
impl<'a, C, A, I> Unpin for ArchivedChild<'a, C, A, I>
impl<'a, C, A, I> UnwindSafe for ArchivedChild<'a, C, A, I> where
A: RefUnwindSafe,
C: RefUnwindSafe,
I: RefUnwindSafe,
<<C as Compound<A, I>>::Leaf 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.