#[repr(u8)]pub enum MajorType {
Uint = 0,
NegativeUint = 1,
Bytes = 2,
String = 3,
Array = 4,
Map = 5,
Tagged = 6,
SimpleValueOrFloat = 7,
}Expand description
CBOR Major Type
Variants§
Trait Implementations§
impl Copy for MajorType
impl Eq for MajorType
Source§impl From<&CborInteger> for MajorType
impl From<&CborInteger> for MajorType
Source§fn from(value: &CborInteger) -> Self
fn from(value: &CborInteger) -> Self
Converts to this type from the input type.
Source§impl From<InitialByte> for MajorType
impl From<InitialByte> for MajorType
Source§fn from(ib: InitialByte) -> Self
fn from(ib: InitialByte) -> Self
Converts to this type from the input type.
Source§impl From<MajorType> for InitialByte
impl From<MajorType> for InitialByte
Source§impl Ord for MajorType
impl Ord for MajorType
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for MajorType
impl PartialOrd 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