Expand description
Canonical opaque value representation for hold-last state and hashing.
Canonical form:
- Scalar/enum/bool: one u64 word =
Slot.0. - String: bytes, length; hash is over len:u64 + each byte as u64 (legacy parity).
- List: len:u64 + one u64 word per element. Quantized numeric elements store integer q as sign-extended u64 bits. Unquantized numeric elements store raw wire bits (f64/f32 bits, integer bits).
Structs§
- Opaque
Pool State - Pool-backed canonical opaque hold-last state.
wordsstores list elements (or one scalar word at index 0).bytesstores string bytes. - Word
Iter - Iterator over the canonical
u64words of anOpaqueRef.
Enums§
- Opaque
Kind - Opaque
Ref - A borrowed canonical opaque value.
Functions§
- eq_
opaque - hash_
opaque - hash_
value - numeric_
list_ word - Canonicalize a numeric list element. Quantized: sign-extended q as u64 bits. Unquantized: raw wire bits as stored in Slot.