pub enum ValueRef<'a> {
}Expand description
Borrowed encoding input. Arrays and maps retain caller order. Scalar integer copies zeroize on drop; borrowed storage remains the caller’s responsibility. No payload-printing or cloning traits are implemented.
Variants§
Unsigned(u64)
Full unsigned 64-bit integer.
Negative(u64)
Full unsigned argument n for the negative integer -1-n.
Bytes(&'a [u8])
Borrowed byte contents.
Text(&'a str)
Borrowed UTF-8 text.
Array(&'a [ValueRef<'a>])
Ordered array elements.
Map(&'a [MapEntry<'a>])
Ordered unique map entries; equivalence is checked before returning output.
Tag(u64, &'a ValueRef<'a>)
Arbitrary tag and its child; application-specific semantics remain opaque.
Float(&'a Float)
Borrowed protected floating-point value.
Bool(bool)
Boolean.
Null
Null.
Undefined
Undefined.
Simple(u8)
Simple value (0..23 or 32..255); codes 24..31 are reserved.
Received(&'a Frame<'a>)
Embed the complete received encoding verbatim, subject to the selected profile and remaining budgets. This variant never normalizes input.