Enum cbor::CborFloat[][src]

pub enum CborFloat {
    Float16(f32),
    Float32(f32),
    Float64(f64),
}

An IEEE 754 floating point number (major type 7).

Variants

IEEE 754 half-precision float.

WARNING: This may be broken right now. ---AG

IEEE 754 single-precision float.

IEEE 754 double-precision float.

Methods

impl CborFloat
[src]

Return the underlying value as a f64.

Trait Implementations

impl Clone for CborFloat
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for CborFloat
[src]

impl Debug for CborFloat
[src]

Formats the value using the given formatter. Read more

impl PartialEq for CborFloat
[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 CborFloat
[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 CborFloat
[src]

Deserialize a value using a Decoder.

impl Encodable for CborFloat
[src]

Serialize a value using an Encoder.

Auto Trait Implementations

impl Send for CborFloat

impl Sync for CborFloat