pub enum Type {
Show 27 variants
Bool,
Null,
Undefined,
U8,
U16,
U32,
U64,
I8,
I16,
I32,
I64,
Int,
F16,
F32,
F64,
Simple,
Bytes,
BytesIndef,
String,
StringIndef,
Array,
ArrayIndef,
Map,
MapIndef,
Tag,
Break,
Unknown(u8),
}
Expand description
CBOR data types.
Variants§
Bool
Null
Undefined
U8
U16
U32
U64
I8
I16
I32
I64
Int
F16
F32
F64
Simple
Bytes
BytesIndef
String
StringIndef
Array
ArrayIndef
Map
MapIndef
Tag
Break
Unknown(u8)
Trait Implementations§
Source§impl Ord for Type
impl Ord for Type
Source§impl PartialOrd for Type
impl PartialOrd for Type
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
)Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 2 bytes
Size for each variant:
Bool
: 0 bytesNull
: 0 bytesUndefined
: 0 bytesU8
: 0 bytesU16
: 0 bytesU32
: 0 bytesU64
: 0 bytesI8
: 0 bytesI16
: 0 bytesI32
: 0 bytesI64
: 0 bytesInt
: 0 bytesF16
: 0 bytesF32
: 0 bytesF64
: 0 bytesSimple
: 0 bytesBytes
: 0 bytesBytesIndef
: 0 bytesString
: 0 bytesStringIndef
: 0 bytesArray
: 0 bytesArrayIndef
: 0 bytesMap
: 0 bytesMapIndef
: 0 bytesTag
: 0 bytesBreak
: 0 bytesUnknown
: 1 byte