Enum fpdec_core::ParseDecimalError [−][src]
pub enum ParseDecimalError {
Empty,
Invalid,
FracDigitLimitExceeded,
InternalOverflow,
}
Expand description
An error which can be returned when parsing a decimal literal.
This error is used as the error type for the FromStr
implementation of
Decimal
.
Variants
Empty
An empty string has been given as literal.
Invalid
The given string is not a valid decimal literal.
FracDigitLimitExceeded
The given decimal literal has more fractional digits than specified by
MAX_N_FRAC_DIGITS
.
InternalOverflow
The given decimal literal would exceed the internal representation of
Decimal
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ParseDecimalError
impl Send for ParseDecimalError
impl Sync for ParseDecimalError
impl Unpin for ParseDecimalError
impl UnwindSafe for ParseDecimalError
Blanket Implementations
Mutably borrows from an owned value. Read more