Struct std::num::dec2flt::parse::Decimal [] [src]

pub struct Decimal<'a> {
    pub integral: &'a [u8],
    pub fractional: &'a [u8],
    pub exp: i64,
}
Unstable (dec2flt)

: internal routines only exposed for testing

The interesting parts of a decimal string.

Fields

integral
Unstable (dec2flt)

: internal routines only exposed for testing

fractional
Unstable (dec2flt)

: internal routines only exposed for testing

exp
Unstable (dec2flt)

: internal routines only exposed for testing

The decimal exponent, guaranteed to have fewer than 18 decimal digits.

Methods

impl<'a> Decimal<'a>

fn new(integral: &'a [u8], fractional: &'a [u8], exp: i64) -> Decimal<'a>

Unstable (dec2flt)

: internal routines only exposed for testing

Trait Implementations

Derived Implementations

impl<'a> Eq for Decimal<'a>

fn assert_receiver_is_total_eq(&self)

impl<'a> PartialEq<Decimal<'a>> for Decimal<'a>

fn eq(&self, __arg_0: &Decimal<'a>) -> bool

fn ne(&self, __arg_0: &Decimal<'a>) -> bool

impl<'a> Debug for Decimal<'a>

fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>