pub enum DecimalAmountParseError {
InvalidFormat,
TooPrecise,
}Expand description
Error returned when parsing an exact decimal amount.
Variants§
InvalidFormat
The amount is not canonical non-negative decimal text.
TooPrecise
The amount exceeds the supported precision or scale.
Trait Implementations§
Source§impl Clone for DecimalAmountParseError
impl Clone for DecimalAmountParseError
Source§fn clone(&self) -> DecimalAmountParseError
fn clone(&self) -> DecimalAmountParseError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DecimalAmountParseError
Source§impl Debug for DecimalAmountParseError
impl Debug for DecimalAmountParseError
Source§impl Display for DecimalAmountParseError
impl Display for DecimalAmountParseError
impl Eq for DecimalAmountParseError
Source§impl Error for DecimalAmountParseError
impl Error for DecimalAmountParseError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for DecimalAmountParseError
impl PartialEq for DecimalAmountParseError
impl StructuralPartialEq for DecimalAmountParseError
Auto Trait Implementations§
impl Freeze for DecimalAmountParseError
impl RefUnwindSafe for DecimalAmountParseError
impl Send for DecimalAmountParseError
impl Sync for DecimalAmountParseError
impl Unpin for DecimalAmountParseError
impl UnsafeUnpin for DecimalAmountParseError
impl UnwindSafe for DecimalAmountParseError
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