pub enum Type {
Show 24 variants
UInt,
UInt8,
UInt16,
UInt32,
UInt64,
Int,
Int8,
Int16,
Int32,
Int64,
Float,
Float16,
Float32,
Float64,
Bytes,
Unicode,
Array,
Map,
Tag,
Any,
Null,
Undefined,
Bool,
Break,
}Expand description
All core types defined in the CBOR specification.
For the most part, this is used for convenient error reporting.
Variants§
UInt
UInt8
UInt16
UInt32
UInt64
Int
Int8
Int16
Int32
Int64
Float
Float16
Float32
Float64
Bytes
Unicode
Array
Map
Tag
Any
Null
Undefined
Bool
Break
Trait Implementations§
impl Copy for Type
impl Eq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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)