#[non_exhaustive]pub enum ParseDenominationError {
Unknown(UnknownDenominationError),
PossiblyConfusing(PossiblyConfusingDenominationError),
}
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.
Unknown(UnknownDenominationError)
The denomination was unknown.
PossiblyConfusing(PossiblyConfusingDenominationError)
The denomination has multiple possible interpretations.
Trait Implementations§
source§impl Clone for ParseDenominationError
impl Clone for ParseDenominationError
source§fn clone(&self) -> ParseDenominationError
fn clone(&self) -> ParseDenominationError
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 ParseDenominationError
impl Debug for ParseDenominationError
source§impl Display for ParseDenominationError
impl Display for ParseDenominationError
source§impl Error for ParseDenominationError
Available on crate feature std
only.
impl Error for ParseDenominationError
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 ParseDenominationError
impl From<Infallible> for ParseDenominationError
source§fn from(never: Infallible) -> Self
fn from(never: Infallible) -> 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 PartialEq for ParseDenominationError
impl PartialEq for ParseDenominationError
impl Eq for ParseDenominationError
impl StructuralPartialEq for ParseDenominationError
Auto Trait Implementations§
impl Freeze for ParseDenominationError
impl RefUnwindSafe for ParseDenominationError
impl Send for ParseDenominationError
impl Sync for ParseDenominationError
impl Unpin for ParseDenominationError
impl UnwindSafe for ParseDenominationError
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
)