Enum fpdec::DecimalError [−][src]
pub enum DecimalError {
FracDigitLimitExceeded,
InternalOverflow,
InfiniteValue,
NotANumber,
DivisionByZero,
}
Expand description
An error which can be returned from converting numbers to Decimal
or from
binary operators on Decimal
.
This error is used as the error type for the TryFrom
implementation of
Decimal
. It is also used when the implementations of the numerical
operators panic.
Variants
FracDigitLimitExceeded
The precise result would have more than MAX_N_FRAC_DIGITS fractional decimal digits.
InternalOverflow
The result would exceed the internal representation of Decimal
.
InfiniteValue
Attempt to convert an infinite value to Decimal
.
NotANumber
Attempt to convert a ‘not-a-number’ value to a Decimal
.
DivisionByZero
A division op called with a divisor equal to zero.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DecimalError
impl Send for DecimalError
impl Sync for DecimalError
impl Unpin for DecimalError
impl UnwindSafe for DecimalError
Blanket Implementations
Mutably borrows from an owned value. Read more