pub enum Token<'lt> {
BinCont(&'lt [u8], u32),
Bin(&'lt [u8]),
Len(LenType, u32),
Nil,
Bool(bool),
Num(Num),
}
Expand description
MessagePack Rust decoded message pack tokens
Variants§
BinCont(&'lt [u8], u32)
Indicates incomplete binary data for Bin, Str, or Ext tokens. The second tuple field (the u32 value) is the remaining length
Bin(&'lt [u8])
Indicates completed binary data for Bin, Str, or Ext tokens
Len(LenType, u32)
A MessagePack length marker identifies an amount of something, see the LenType for what that something is
Nil
MesagePack ‘Nil’ type
Bool(bool)
A boolean value
Num(Num)
A number value
Trait Implementations§
impl<'lt> Copy for Token<'lt>
impl<'lt> StructuralPartialEq for Token<'lt>
Auto Trait Implementations§
impl<'lt> Freeze for Token<'lt>
impl<'lt> RefUnwindSafe for Token<'lt>
impl<'lt> Send for Token<'lt>
impl<'lt> Sync for Token<'lt>
impl<'lt> Unpin for Token<'lt>
impl<'lt> UnwindSafe for Token<'lt>
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