#[repr(u8)]pub enum Major {
Uint = 0,
Nint = 1,
Bstr = 2,
Tstr = 3,
Array = 4,
Map = 5,
Tag = 6,
Misc = 7,
}Expand description
The major number in a CBOR encoding
The major number is 3 bits long, and identifies the basic type of a CBOR-encoded value.
Variants§
Uint = 0
An unsigned integer
Nint = 1
A negative integer
Bstr = 2
A byte string
Tstr = 3
A text string
Array = 4
An array
Map = 5
A map
Tag = 6
A tagged value
Misc = 7
Miscellaneous types (floats, bool, null, etc)
Trait Implementations§
Source§impl TryFromPrimitive for Major
impl TryFromPrimitive for Major
impl Copy for Major
impl StructuralPartialEq for Major
Auto Trait Implementations§
impl Freeze for Major
impl RefUnwindSafe for Major
impl Send for Major
impl Sync for Major
impl Unpin for Major
impl UnwindSafe for Major
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