Enum cbor_data::ItemKind [−][src]
pub enum ItemKind<'a> {
Pos(u64),
Neg(u64),
Float(f64),
Str(StringIter<'a>),
Bytes(BytesIter<'a>),
Bool(bool),
Null,
Undefined,
Simple(u8),
Array(ArrayIter<'a>),
Dict(DictIter<'a>),
}Expand description
Low-level encoding of a CBOR item. Use CborValue for inspecting values.
You can obtain this representation from Cbor::kind or
TaggedItem::kind.
Beware of the Neg variant, which carries -1 - x.
Variants
Pos(u64)
Tuple Fields
0: u64Neg(u64)
Tuple Fields
0: u64Float(f64)
Tuple Fields
0: f64Str(StringIter<'a>)
Tuple Fields
0: StringIter<'a>Bytes(BytesIter<'a>)
Tuple Fields
0: BytesIter<'a>Bool(bool)
Tuple Fields
0: boolNull
Undefined
Simple(u8)
Tuple Fields
0: u8Array(ArrayIter<'a>)
Tuple Fields
0: ArrayIter<'a>Dict(DictIter<'a>)
Tuple Fields
0: DictIter<'a>Implementations
Trait Implementations
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for ItemKind<'a>
impl<'a> UnwindSafe for ItemKind<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more