#[repr(u8)]pub enum MajorKind {
UnsignedInt = 0,
NegativeInt = 1,
ByteString = 2,
TextString = 3,
Array = 4,
Map = 5,
Tag = 6,
Other = 7,
}Expand description
The type
Variants§
UnsignedInt = 0
Non-negative integer (major type 0).
NegativeInt = 1
Negative integer (major type 1).
ByteString = 2
Byte string (major type 2).
TextString = 3
Unicode text string (major type 3).
Array = 4
Array (major type 4).
Map = 5
Map (major type 5).
Tag = 6
Tag (major type 6).
Other = 7
Other (major type 7).
Trait Implementations§
impl Copy for MajorKind
impl Eq for MajorKind
impl StructuralPartialEq for MajorKind
Auto Trait Implementations§
impl Freeze for MajorKind
impl RefUnwindSafe for MajorKind
impl Send for MajorKind
impl Sync for MajorKind
impl Unpin for MajorKind
impl UnwindSafe for MajorKind
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