Enum cbor::CborUnsigned[][src]

pub enum CborUnsigned {
    UInt8(u8),
    UInt16(u16),
    UInt32(u32),
    UInt64(u64),
}

An unsigned integer (major type 0).

Variants

Unsigned 8 bit integer.

Unsigned 16 bit integer.

Unsigned 32 bit integer.

Unsigned 64 bit integer.

Methods

impl CborUnsigned
[src]

Return the underlying value as a u64.

Trait Implementations

impl Clone for CborUnsigned
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for CborUnsigned
[src]

impl Debug for CborUnsigned
[src]

Formats the value using the given formatter. Read more

impl Eq for CborUnsigned
[src]

impl Ord for CborUnsigned
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl PartialEq for CborUnsigned
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialOrd for CborUnsigned
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Decodable for CborUnsigned
[src]

Deserialize a value using a Decoder.

impl Encodable for CborUnsigned
[src]

Serialize a value using an Encoder.

Auto Trait Implementations