pub enum NanTag {
F64,
I48,
Bool,
None,
Unit,
Function,
ModuleFunction,
Heap,
Ref,
}Expand description
Tag discriminator for ValueWord values.
Returned by ValueWord::tag() for fast type dispatch without materializing HeapValue.
Variants§
F64
Inline f64 (not tagged — uses the full 64-bit IEEE 754 representation)
I48
Inline i48 (48-bit signed integer, covers [-2^47, 2^47-1])
Bool
Inline bool
None
None (null)
Unit
Unit (void return)
Function
Function reference (inline u16 function ID)
ModuleFunction
Module function reference (inline u32 index)
Heap
Heap-allocated HeapValue (String, Array, TypedObject, Closure, etc.)
Ref
Reference to a stack slot (absolute index, used for pass-by-reference)
Trait Implementations§
impl Copy for NanTag
impl Eq for NanTag
impl StructuralPartialEq for NanTag
Auto Trait Implementations§
impl Freeze for NanTag
impl RefUnwindSafe for NanTag
impl Send for NanTag
impl Sync for NanTag
impl Unpin for NanTag
impl UnsafeUnpin for NanTag
impl UnwindSafe for NanTag
Blanket Implementations§
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