Skip to main content

slot_to_wire

Function slot_to_wire 

Source
pub fn slot_to_wire(bits: u64, kind: NativeKind, ctx: &Context) -> WireValue
Expand description

Project a typed slot’s (bits, kind) to a WireValue.

The kind fully determines the projection — no tag-bit probing. For NativeKind::Ptr(hk), the function casts bits to *const HeapValue, debug-asserts the kind matches, and dispatches per HeapValue arm.