Enum libipld_cbor::cbor::MajorKind
source · [−]#[repr(u8)]
pub enum MajorKind {
UnsignedInt,
NegativeInt,
ByteString,
TextString,
Array,
Map,
Tag,
Other,
}Expand description
The type
Variants
UnsignedInt
Non-negative integer (major type 0).
NegativeInt
Negative integer (major type 1).
ByteString
Byte string (major type 2).
TextString
Unicode text string (major type 3).
Array
Array (major type 4).
Map
Map (major type 5).
Tag
Tag (major type 6).
Other
Other (major type 7).
Trait Implementations
impl Copy for MajorKind
impl Eq for MajorKind
impl StructuralEq for MajorKind
impl StructuralPartialEq for MajorKind
Auto Trait Implementations
impl RefUnwindSafe for MajorKind
impl Send for MajorKind
impl Sync for MajorKind
impl Unpin for MajorKind
impl UnwindSafe for MajorKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> References<RawCodec> for T
impl<T> References<RawCodec> for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more