Skip to main content

Module scalar

Module scalar 

Source
Expand description

TypedScalar: type-preserving scalar boundary contract for VM↔JIT exchange.

When scalar values cross the VM/JIT boundary, their type identity (int vs float) must be preserved. TypedScalar carries an explicit ScalarKind discriminator alongside the raw payload bits, eliminating the ambiguity between NaN-boxed I48 integers and plain f64 numbers.

Structs§

TypedScalar
Type-preserving scalar value for VM↔JIT boundary exchange.

Enums§

ScalarKind
Scalar type discriminator.