[][src]Enum flt2dec2flt::PreFormatted

pub enum PreFormatted<'a> {
    NaN,
    Inf(bool),
    Zero(bool),
    Finite(bool, &'a [u8], i16),
}

Represents a pre-formatted floating point number.

Returned by flt2dec2flt::f{32,64}::format_{shortest,exact_fixed,exact_exp}.

Variants

NaN

The number is NaN.

Inf(bool)

The is infinity. The boolean specifies the sign.

Zero(bool)

The number is (after a possible rounding made by the representation) absolute zero. The boolean specifies the sign.

Finite(bool, &'a [u8], i16)

The number is finite. The boolean specifies the sign, the slice specifies the mantissa digits and the integer specifies the exponent.

The represented value is sign 0.mant * 10 ^ exp

Trait Implementations

impl<'a> Clone for PreFormatted<'a>[src]

impl<'a> Copy for PreFormatted<'a>[src]

impl<'a> Debug for PreFormatted<'a>[src]

impl<'a> Eq for PreFormatted<'a>[src]

impl<'a> PartialEq<PreFormatted<'a>> for PreFormatted<'a>[src]

impl<'a> StructuralEq for PreFormatted<'a>[src]

impl<'a> StructuralPartialEq for PreFormatted<'a>[src]

Auto Trait Implementations

impl<'a> Send for PreFormatted<'a>

impl<'a> Sync for PreFormatted<'a>

impl<'a> Unpin for PreFormatted<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.