Enum cbor_tools::format::Major [−][src]
#[repr(u8)]
pub enum Major {
Uint,
Nint,
Bstr,
Tstr,
Array,
Map,
Tag,
Misc,
}
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
An unsigned integer
Nint
A negative integer
Bstr
A byte string
Tstr
A text string
Array
An array
Map
A map
Tag
A tagged value
Misc
Miscellaneous types (floats, bool, null, etc)
Trait Implementations
type Error = TryFromPrimitiveError<Self>
type Error = TryFromPrimitiveError<Self>
The type returned in the event of a conversion error.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Major
impl UnwindSafe for Major
Blanket Implementations
Mutably borrows from an owned value. Read more