Enum nstack::ArchivedNStack
source · [−]#[repr(u8,)]
pub enum ArchivedNStack<T, A, I> where
[Option<T>; 4]: Archive, {
Leaf(Archived<[Option<T>; 4]>),
Node(Archived<[Option<Link<NStack<T, A, I>, A, I>>; 4]>),
}Expand description
An archived NStack
Variants
Leaf(Archived<[Option<T>; 4]>)
Tuple Fields
0: Archived<[Option<T>; 4]>The archived counterpart of NStack::Leaf::0
The archived counterpart of NStack::Leaf
Node(Archived<[Option<Link<NStack<T, A, I>, A, I>>; 4]>)
Tuple Fields
The archived counterpart of NStack::Node
Trait Implementations
sourceimpl<T, A, I> ArchivedCompound<NStack<T, A, I>, A, I> for ArchivedNStack<T, A, I> where
T: Archive,
A: Annotation<T>,
impl<T, A, I> ArchivedCompound<NStack<T, A, I>, A, I> for ArchivedNStack<T, A, I> where
T: Archive,
A: Annotation<T>,
sourcefn child(&self, ofs: usize) -> ArchivedChild<'_, NStack<T, A, I>, A, I>
fn child(&self, ofs: usize) -> ArchivedChild<'_, NStack<T, A, I>, A, I>
Returns an archived child
sourceimpl<__C: ?Sized, T, A, I> CheckBytes<__C> for ArchivedNStack<T, A, I> where
[Option<T>; 4]: Archive,
Archived<[Option<T>; 4]>: CheckBytes<__C>,
Archived<[Option<Link<NStack<T, A, I>, A, I>>; 4]>: CheckBytes<__C>,
impl<__C: ?Sized, T, A, I> CheckBytes<__C> for ArchivedNStack<T, A, I> where
[Option<T>; 4]: Archive,
Archived<[Option<T>; 4]>: CheckBytes<__C>,
Archived<[Option<Link<NStack<T, A, I>, A, I>>; 4]>: CheckBytes<__C>,
type Error = EnumCheckError<u8>
type Error = EnumCheckError<u8>
The error that may result from checking the type.
sourceunsafe fn check_bytes<'__bytecheck>(
value: *const Self,
context: &mut __C
) -> Result<&'__bytecheck Self, Self::Error>
unsafe fn check_bytes<'__bytecheck>(
value: *const Self,
context: &mut __C
) -> Result<&'__bytecheck Self, Self::Error>
Checks whether the given pointer points to a valid value within the given context. Read more
Auto Trait Implementations
impl<T, A, I> !RefUnwindSafe for ArchivedNStack<T, A, I>
impl<T, A, I> !Send for ArchivedNStack<T, A, I>
impl<T, A, I> !Sync for ArchivedNStack<T, A, I>
impl<T, A, I> !Unpin for ArchivedNStack<T, A, I>
impl<T, A, I> !UnwindSafe for ArchivedNStack<T, A, I>
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