pub enum DecimalError {
NotANumber,
TooManyDecimals,
}Expand description
Why a decimal string was rejected.
Variants§
NotANumber
Empty, text, NaN, infinity, exponent junk, or a magnitude that does not fit.
TooManyDecimals
The value is not an integer number of millionths, so it would need a 7th decimal.
Trait Implementations§
Source§impl Clone for DecimalError
impl Clone for DecimalError
impl Copy for DecimalError
Source§impl Debug for DecimalError
impl Debug for DecimalError
impl Eq for DecimalError
Source§impl PartialEq for DecimalError
impl PartialEq for DecimalError
impl StructuralPartialEq for DecimalError
Auto Trait Implementations§
impl Freeze for DecimalError
impl RefUnwindSafe for DecimalError
impl Send for DecimalError
impl Sync for DecimalError
impl Unpin for DecimalError
impl UnsafeUnpin for DecimalError
impl UnwindSafe for DecimalError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more