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 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
Auto Trait Implementations
impl RefUnwindSafe for Status
impl UnwindSafe for Status
Blanket Implementations
Mutably borrows from an owned value. Read more