Enum cbor::CborFloat
[−]
[src]
pub enum CborFloat { Float16(f32), Float32(f32), Float64(f64), }
An IEEE 754 floating point number (major type 7).
Variants
Float16(f32)
IEEE 754 half-precision float.
WARNING: This may be broken right now. ---AG
Float32(f32)
IEEE 754 single-precision float.
Float64(f64)
IEEE 754 double-precision float.
Methods
impl CborFloat
[src]
Trait Implementations
impl Clone for CborFloat
[src]
fn clone(&self) -> CborFloat
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for CborFloat
[src]
impl Debug for CborFloat
[src]
impl PartialEq for CborFloat
[src]
fn eq(&self, __arg_0: &CborFloat) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &CborFloat) -> bool
This method tests for !=
.
impl PartialOrd for CborFloat
[src]
fn partial_cmp(&self, __arg_0: &CborFloat) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &CborFloat) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &CborFloat) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &CborFloat) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &CborFloat) -> bool
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]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<CborFloat, __D::Error>
Deserialize a value using a Decoder
.
impl Encodable for CborFloat
[src]
fn encode<E: RustcEncoder>(&self, e: &mut E) -> Result<(), E::Error>
Serialize a value using an Encoder
.