Enum rust_fixed_point_decimal::DecimalError [−][src]
pub enum DecimalError {
PrecLimitExceeded,
MaxValueExceeded,
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<P>. It is also used when the implementations of the numerical
operators panic.
Variants
The precise result would have more than crate::MAX_PREC fractional decimal digits.
The result would exceed the maximum value representable by the type.
Attempt to convert an infinite value to Decimal.
Attempt to convert a ‘not-a-number’ value to a Decimal.
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