Enum libipld_cbor::cbor::MajorKind
source · #[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§
source§impl PartialEq for MajorKind
impl PartialEq for MajorKind
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)