pub enum Format {
Show 37 variants
PositiveFixInt(u8),
FixMap(u8),
FixArray(u8),
FixStr(u8),
Nil,
Reserved,
False,
True,
Bin8,
Bin16,
Bin32,
Ext8,
Ext16,
Ext32,
Float32,
Float64,
Uint8,
Uint16,
Uint32,
Uint64,
Int8,
Int16,
Int32,
Int64,
FixExt1,
FixExt2,
FixExt4,
FixExt8,
FixExt16,
Str8,
Str16,
Str32,
Array16,
Array32,
Map16,
Map32,
NegativeFixInt(i8),
}
Expand description
Format markers in the MsgPack specification
The Reserved
variant is not used, according to the spec.
Variants§
PositiveFixInt(u8)
FixMap(u8)
FixArray(u8)
FixStr(u8)
Nil
Reserved
False
True
Bin8
Bin16
Bin32
Ext8
Ext16
Ext32
Float32
Float64
Uint8
Uint16
Uint32
Uint64
Int8
Int16
Int32
Int64
FixExt1
FixExt2
FixExt4
FixExt8
FixExt16
Str8
Str16
Str32
Array16
Array32
Map16
Map32
NegativeFixInt(i8)
Implementations§
Source§impl Format
impl Format
pub fn is_positive_fixed_int(u: u8) -> bool
pub fn is_negative_fixed_int(u: u8) -> bool
pub fn is_fixed_map(u: u8) -> bool
pub fn is_fixed_array(u: u8) -> bool
pub fn is_fixed_string(u: u8) -> bool
pub fn set_format<W: Write>(writer: &mut W, format: Format) -> Result<(), Error>
pub fn get_format<R: Read>(reader: &mut R) -> Result<Format, Error>
Trait Implementations§
impl Copy for Format
impl StructuralPartialEq for Format
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnwindSafe for Format
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