Enum cbor::types::Type [−] [src]

pub enum Type {
    Array,
    Bool,
    Break,
    Bytes,
    Float16,
    Float32,
    Float64,
    Int16,
    Int32,
    Int64,
    Int8,
    Null,
    Object,
    Tagged,
    Text,
    UInt16,
    UInt32,
    UInt64,
    UInt8,
    Undefined,
    Unknown {
        major: u8,
        info: u8,
    },
    Reserved {
        major: u8,
        info: u8,
    },
    Unassigned {
        major: u8,
        info: u8,
    },
}

The CBOR types.

Variants

Array
Bool
Break
Bytes
Float16
Float32
Float64
Int16
Int32
Int64
Int8
Null
Object
Tagged
Text
UInt16
UInt32
UInt64
UInt8
Undefined
Unknown

Fields

major
info
Reserved

Fields

major
info
Unassigned

Fields

major
info

Methods

impl Type

fn major(&self) -> u8

fn read<R: ReadBytesExt>(r: &mut R) -> Result<(Type, u8), Error>

Trait Implementations

Derived Implementations

impl Hash for Type

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Debug for Type

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Ord for Type

fn cmp(&self, __arg_0: &Type) -> Ordering

impl Eq for Type

impl PartialOrd for Type

fn partial_cmp(&self, __arg_0: &Type) -> Option<Ordering>

fn lt(&self, __arg_0: &Type) -> bool

fn le(&self, __arg_0: &Type) -> bool

fn gt(&self, __arg_0: &Type) -> bool

fn ge(&self, __arg_0: &Type) -> bool

impl PartialEq for Type

fn eq(&self, __arg_0: &Type) -> bool

fn ne(&self, __arg_0: &Type) -> bool

impl Copy for Type

impl Clone for Type

fn clone(&self) -> Type

fn clone_from(&mut self, source: &Self)