#[non_exhaustive]pub enum ParseError {
Amount(ParseAmountError),
Denomination(ParseDenominationError),
MissingDenomination(MissingDenominationError),
}
Expand description
An error during amount parsing amount with denomination.
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.
Amount(ParseAmountError)
Invalid amount.
Denomination(ParseDenominationError)
Invalid denomination.
MissingDenomination(MissingDenominationError)
The denomination was not identified.
Trait Implementations§
source§impl Clone for ParseError
impl Clone for ParseError
source§fn clone(&self) -> ParseError
fn clone(&self) -> ParseError
Returns a copy of the value. Read more
1.6.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ParseError
impl Debug for ParseError
source§impl Display for ParseError
impl Display for ParseError
source§impl Error for ParseError
Available on crate feature std
only.
impl Error for ParseError
Available on crate feature
std
only.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.81.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<Infallible> for ParseError
impl From<Infallible> for ParseError
source§fn from(never: Infallible) -> Self
fn from(never: Infallible) -> Self
Converts to this type from the input type.
source§impl From<InputTooLargeError> for ParseError
impl From<InputTooLargeError> for ParseError
source§fn from(e: InputTooLargeError) -> Self
fn from(e: InputTooLargeError) -> Self
Converts to this type from the input type.
source§impl From<InvalidCharacterError> for ParseError
impl From<InvalidCharacterError> for ParseError
source§fn from(e: InvalidCharacterError) -> Self
fn from(e: InvalidCharacterError) -> Self
Converts to this type from the input type.
source§impl From<MissingDigitsError> for ParseError
impl From<MissingDigitsError> for ParseError
source§fn from(e: MissingDigitsError) -> Self
fn from(e: MissingDigitsError) -> Self
Converts to this type from the input type.
source§impl From<OutOfRangeError> for ParseError
impl From<OutOfRangeError> for ParseError
source§fn from(e: OutOfRangeError) -> Self
fn from(e: OutOfRangeError) -> Self
Converts to this type from the input type.
source§impl From<ParseAmountError> for ParseError
impl From<ParseAmountError> for ParseError
source§fn from(e: ParseAmountError) -> Self
fn from(e: ParseAmountError) -> Self
Converts to this type from the input type.
source§impl From<ParseDenominationError> for ParseError
impl From<ParseDenominationError> for ParseError
source§fn from(e: ParseDenominationError) -> Self
fn from(e: ParseDenominationError) -> Self
Converts to this type from the input type.
source§impl From<TooPreciseError> for ParseError
impl From<TooPreciseError> for ParseError
source§fn from(e: TooPreciseError) -> Self
fn from(e: TooPreciseError) -> Self
Converts to this type from the input type.
source§impl PartialEq for ParseError
impl PartialEq for ParseError
impl Eq for ParseError
impl StructuralPartialEq for ParseError
Auto Trait Implementations§
impl Freeze for ParseError
impl RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnwindSafe for ParseError
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)