pub enum MajorType {
Unsigned,
Negative,
Bytes,
Text,
Array,
Map,
Tag,
Simple,
}Expand description
The eight CBOR major types from RFC 8949 section 3.1.
Variants§
Trait Implementations§
impl Copy for MajorType
impl Eq for MajorType
impl Structural for MajorType
impl StructuralPartialEq for MajorType
Auto Trait Implementations§
impl Freeze for MajorType
impl RefUnwindSafe for MajorType
impl Send for MajorType
impl Sync for MajorType
impl Unpin for MajorType
impl UnsafeUnpin for MajorType
impl UnwindSafe for MajorType
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