Enum cbor::CborFloat [−][src]
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]
impl CborFloat
Trait Implementations
impl Clone for CborFloat
[src]
impl Clone for CborFloat
fn clone(&self) -> CborFloat
[src]
fn clone(&self) -> CborFloat
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for CborFloat
[src]
impl Copy for CborFloat
impl Debug for CborFloat
[src]
impl Debug for CborFloat
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for CborFloat
[src]
impl PartialEq for CborFloat
fn eq(&self, other: &CborFloat) -> bool
[src]
fn eq(&self, other: &CborFloat) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &CborFloat) -> bool
[src]
fn ne(&self, other: &CborFloat) -> bool
This method tests for !=
.
impl PartialOrd for CborFloat
[src]
impl PartialOrd for CborFloat
fn partial_cmp(&self, other: &CborFloat) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &CborFloat) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &CborFloat) -> bool
[src]
fn lt(&self, other: &CborFloat) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &CborFloat) -> bool
[src]
fn le(&self, other: &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, other: &CborFloat) -> bool
[src]
fn gt(&self, other: &CborFloat) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &CborFloat) -> bool
[src]
fn ge(&self, other: &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]
impl Decodable for CborFloat
fn decode<__D: Decoder>(d: &mut __D) -> Result<CborFloat, __D::Error>
[src]
fn decode<__D: Decoder>(d: &mut __D) -> Result<CborFloat, __D::Error>
Deserialize a value using a Decoder
.
impl Encodable for CborFloat
[src]
impl Encodable for CborFloat