Struct dec::Decimal32 [−][src]
pub struct Decimal32 { /* fields omitted */ }
Expand description
A 32-bit decimal floating-point number.
Implementations
Creates a number from its representation as a little-endian byte array.
Creates a number from its representation as a big-endian byte array.
Creates a number from its representation as a byte array in the native endianness of the target platform.
Returns the memory representation of the number as a byte array in little-endian order.
Returns the memory representation of the number as a byte array in big-endian order.
Returns the memory representation of the number as a byte array in the native endianness of the target platform.
Computes the coefficient of the number.
If the number is a special value (i.e., NaN or infinity), returns zero.
Trait Implementations
Performs the conversion.
Performs the conversion.
type Err = ParseDecimalError
type Err = ParseDecimalError
The associated error which can be returned from parsing.
Auto Trait Implementations
impl RefUnwindSafe for Decimal32
impl UnwindSafe for Decimal32
Blanket Implementations
Mutably borrows from an owned value. Read more