pub struct Status { /* private fields */ }
Expand description

Represents exceptional conditions resulting from operations on decimal numbers.

For details about the various exceptional conditions, consult the Exceptional Conditions chapter of the General Decimal Arithmetic specification.

Implementations

Reports whether any of the condition flags are set.

Reports whether the conversion syntax flag is set.

Operations set this flag when an invalid string is converted to a decimal.

Sets self’s conversion syntax flag.

Reports whether the division by zero flag is set.

Operations set this flag when a nonzero dividend is divided by zero.

Sets self’s division by zero flag.

Reports whether the division impossible flag is set.

Operations set this flag if the integer result of a division had too many digits.

Sets self’s division impossible flag.

Reports whether the division undefined flag is set.

Operations set this flag when a zero dividend is divided by zero.

Sets self’s division undefined flag.

Reports whether the insufficient storage flag is set.

Operations set this flag if memory allocation fails.

Sets self’s insufficient storage flag.

Reports whether the inexact flag is set.

Operations set this flag when one or more nonzero coefficient digits were discarded during rounding from a result.

Sets self’s inexact flag.

Reports whether the invalid context flag is set.

Operations set this flag if they detect an invalid context.

It should not be possible to pass an invalid context to an operation using this crate, but this method is nonetheless provided for completeness.

Sets self’s invalid context flag.

Reports whether the invalid operation flag is set.

Various operations set this flag in response to invalid arguments.

Sets self’s invalid operation flag.

Reports whether the overflow flag is set.

Operations set this flag when the exponent of a result is too large to be represented.

Sets self’s overflow flag.

Reports whether the clamped flag is set.

Operations set this flag when the exponent of a result has been altered or constrained in order to fit the constraints of a specific concrete representation.

Sets self’s clamped flag.

Reports whether the rounded flag is set.

Operations set this flag when one or more zero or nonzero coefficient digits were discarded from a result.

Sets self’s rounded flag.

Reports whether the subnormal flag is set.

Operations set this flag when a result’s adjusted exponent is less than Emin before any rounding.

Sets self’s subnormal flag.

Reports whether the underflow flag is set.

Operations set this flag when a result is both subnormal and inexact.

Sets self’s underflow flag.

Trait Implementations

The resulting type after applying the & operator.

Performs the & operation. Read more

Performs the &= operation. Read more

The resulting type after applying the | operator.

Performs the | operation. Read more

Performs the |= operation. Read more

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

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

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.