Enum cbor_data::ValueKind [−][src]
pub enum ValueKind<'a> {
Pos(u64),
Neg(u64),
Float(f64),
Str(&'a str),
Bytes(&'a [u8]),
Bool(bool),
Null,
Undefined,
Simple(u8),
Array,
Dict,
}Expand description
Low-level decoded form of a CBOR item. Use CborValue for inspecting values.
Beware of the Neg variant, which carries -1 - x.
Variants
Pos(u64)Neg(u64)Float(f64)Str(&'a str)Bool(bool)Simple(u8)Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for ValueKind<'a>impl<'a> UnwindSafe for ValueKind<'a>Blanket Implementations
Mutably borrows from an owned value. Read more