#[repr(transparent)]
pub struct Decimal32 { /* private fields */ }
Expand description

A 32-bit decimal floating-point number.

Implementations

The value that represents Not-a-Number (NaN).

The value that represents zero.

The value that represents one.

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.

Computes the exponent of the number.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. 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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

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.