Enum pot::format::Float[][src]

pub enum Float {
    F64(f64),
    F32(f32),
}
Expand description

A floating point number that can safely convert between other number types using compile-time evaluation when possible.

Variants

F64(f64)

An f64 value.

Tuple Fields of F64

0: f64
F32(f32)

An f32 value.

Tuple Fields of F32

0: f32

Implementations

Returns this number as an f32, if it can be done without losing precision.

Returns this number as an f64.

Returns this number as an Integer, if the stored value has no fractional part.

Reads a floating point number given the atom kind and byte_len. byte_len should be the exact argument from the atom header.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.