#[non_exhaustive]pub enum ValueRef<'a> {
Bool(bool),
Uint(u64),
Int(i64),
Float(f32),
Double(f64),
Utf8(&'a str),
Bytes(&'a [u8]),
Null,
}Expand description
A borrowed view of one decoded scalar TLV value — the zero-copy sibling
of Value. Strings and byte strings borrow directly from the reader’s
input; scalars are carried by value. Containers never appear here: the
streaming crate::TlvReader::next_ref API reports them as
ContainerStart/ContainerEnd events, so no owned children are built.
Utf8 carries the same IS1-truncated text the owned path presents (the
text before the first 0x1F localized-string separator); access to the
raw suffix (LSID) remains a separate additive follow-up.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Bool(bool)
A boolean.
Uint(u64)
An unsigned integer (any wire width).
Int(i64)
A signed integer (any wire width).
Float(f32)
A 4-byte IEEE 754 single-precision float.
Double(f64)
An 8-byte IEEE 754 double-precision float.
Utf8(&'a str)
A UTF-8 string borrowing the reader’s input (IS1-truncated text).
Bytes(&'a [u8])
An octet string borrowing the reader’s input.
Null
The TLV null value.