Skip to main content

slot_to_envelope

Function slot_to_envelope 

Source
pub fn slot_to_envelope(
    bits: u64,
    kind: NativeKind,
    type_name: &str,
    ctx: &Context,
) -> ValueEnvelope
Expand description

Wrap a typed slot in a ValueEnvelope with optional metadata.

type_name is the user-facing Shape type name (e.g. "int", "DataTable", "MyType"). The envelope’s type_info is populated from the type registry when available.