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>)
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
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