pub enum Entry {
Instance(Box<InstanceEntry>),
Reference(ReferenceEntry),
}Expand description
One slot on the call stack.
InstanceEntry is boxed because its working state (cnode + mem +
regs) is significantly larger than a ReferenceEntry (3 words);
keeping the enum’s stack-side discriminant compact matters when
the stack approaches the max-depth limit (256 by default).
Variants§
Instance(Box<InstanceEntry>)
Reference(ReferenceEntry)
Implementations§
Source§impl Entry
impl Entry
pub fn status(&self) -> EntryStatus
pub fn set_status(&mut self, s: EntryStatus)
pub fn is_instance(&self) -> bool
pub fn as_instance(&self) -> Option<&InstanceEntry>
pub fn as_instance_mut(&mut self) -> Option<&mut InstanceEntry>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin for Entry
impl UnwindSafe for Entry
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn 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.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.