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)
Neg(u64)
Float(f64)
Str(StringIter<'a>)
Bytes(BytesIter<'a>)
Bool(bool)
Null
Undefined
Simple(u8)
Array(ArrayIter<'a>)
Dict(DictIter<'a>)
Implementations§
Trait Implementations§
Source§impl<'a> From<ItemKind<'a>> for ItemKindShort
impl<'a> From<ItemKind<'a>> for ItemKindShort
Source§impl<'a> PartialOrd for ItemKind<'a>
impl<'a> PartialOrd for ItemKind<'a>
impl<'a> Copy for ItemKind<'a>
impl<'a> StructuralPartialEq for ItemKind<'a>
Auto Trait Implementations§
impl<'a> Freeze for ItemKind<'a>
impl<'a> RefUnwindSafe for ItemKind<'a>
impl<'a> Send for ItemKind<'a>
impl<'a> Sync for ItemKind<'a>
impl<'a> Unpin for ItemKind<'a>
impl<'a> UnwindSafe for ItemKind<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more