Enum ParseAmountError
#[non_exhaustive]pub enum ParseAmountError {
OutOfRange(OutOfRangeError),
TooPrecise(TooPreciseError),
MissingDigits(MissingDigitsError),
InputTooLarge(InputTooLargeError),
InvalidCharacter(InvalidCharacterError),
}
Expand description
An error during amount parsing.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
OutOfRange(OutOfRangeError)
The amount is too big or too small.
TooPrecise(TooPreciseError)
Amount has higher precision than supported by the type.
MissingDigits(MissingDigitsError)
A digit was expected but not found.
InputTooLarge(InputTooLargeError)
Input string was too large.
InvalidCharacter(InvalidCharacterError)
Invalid character in input.
Trait Implementations§
§impl Clone for ParseAmountError
impl Clone for ParseAmountError
§fn clone(&self) -> ParseAmountError
fn clone(&self) -> ParseAmountError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for ParseAmountError
impl Debug for ParseAmountError
§impl Display for ParseAmountError
impl Display for ParseAmountError
§impl Error for ParseAmountError
impl Error for ParseAmountError
§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()
§impl From<Infallible> for ParseAmountError
impl From<Infallible> for ParseAmountError
§fn from(never: Infallible) -> ParseAmountError
fn from(never: Infallible) -> ParseAmountError
Converts to this type from the input type.
§impl From<InputTooLargeError> for ParseAmountError
impl From<InputTooLargeError> for ParseAmountError
§fn from(value: InputTooLargeError) -> ParseAmountError
fn from(value: InputTooLargeError) -> ParseAmountError
Converts to this type from the input type.
§impl From<InvalidCharacterError> for ParseAmountError
impl From<InvalidCharacterError> for ParseAmountError
§fn from(value: InvalidCharacterError) -> ParseAmountError
fn from(value: InvalidCharacterError) -> ParseAmountError
Converts to this type from the input type.
§impl From<MissingDigitsError> for ParseAmountError
impl From<MissingDigitsError> for ParseAmountError
§fn from(value: MissingDigitsError) -> ParseAmountError
fn from(value: MissingDigitsError) -> ParseAmountError
Converts to this type from the input type.
§impl From<OutOfRangeError> for ParseAmountError
impl From<OutOfRangeError> for ParseAmountError
§fn from(value: OutOfRangeError) -> ParseAmountError
fn from(value: OutOfRangeError) -> ParseAmountError
Converts to this type from the input type.
§impl From<ParseAmountError> for ParseError
impl From<ParseAmountError> for ParseError
§fn from(e: ParseAmountError) -> ParseError
fn from(e: ParseAmountError) -> ParseError
Converts to this type from the input type.
§impl From<TooPreciseError> for ParseAmountError
impl From<TooPreciseError> for ParseAmountError
§fn from(value: TooPreciseError) -> ParseAmountError
fn from(value: TooPreciseError) -> ParseAmountError
Converts to this type from the input type.
§impl PartialEq for ParseAmountError
impl PartialEq for ParseAmountError
impl Eq for ParseAmountError
impl StructuralPartialEq for ParseAmountError
Auto Trait Implementations§
impl Freeze for ParseAmountError
impl RefUnwindSafe for ParseAmountError
impl Send for ParseAmountError
impl Sync for ParseAmountError
impl Unpin for ParseAmountError
impl UnwindSafe for ParseAmountError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more