Expand description
Typed Option representations for v2 runtime.
For heap types: Option<*const T> = nullable pointer.
None = null (0x0), Some(v) = non-null pointer. Zero overhead.
For primitive types: tagged struct with has_value discriminant.
Structs§
- Primitive
Option - Option for primitive (non-pointer) types.
Constants§
- PRIMITIVE_
OPTION_ OFFSET_ HAS_ VALUE - Byte offset constants for JIT codegen.
- PRIMITIVE_
OPTION_ OFFSET_ VALUE
Functions§
- heap_
option_ is_ none - Check if a heap option is None (null pointer).
- heap_
option_ is_ some - Check if a heap option is Some (non-null pointer).
Type Aliases§
- Heap
Option - Option for heap pointer types — just a nullable pointer.
None= null (0x0),Some= non-null pointer. Zero overhead.