Enum bitcoin::util::amount::ParseAmountError
source · pub enum ParseAmountError {
Negative,
TooBig,
TooPrecise,
InvalidFormat,
InputTooLarge,
InvalidCharacter(char),
UnknownDenomination(String),
PossiblyConfusingDenomination(String),
}
Expand description
An error during amount parsing.
Variants
Negative
Amount is negative.
TooBig
Amount is too big to fit inside the type.
TooPrecise
Amount has higher precision than supported by the type.
InvalidFormat
Invalid number format.
InputTooLarge
Input string was too large.
InvalidCharacter(char)
Invalid character in input.
UnknownDenomination(String)
The denomination was unknown.
PossiblyConfusingDenomination(String)
The denomination has multiple possible interpretations.
Trait Implementations
sourceimpl Clone for ParseAmountError
impl Clone for ParseAmountError
sourcefn clone(&self) -> ParseAmountError
fn clone(&self) -> ParseAmountError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ParseAmountError
impl Debug for ParseAmountError
sourceimpl Display for ParseAmountError
impl Display for ParseAmountError
sourceimpl Error for ParseAmountError
Available on crate feature std
only.
impl Error for ParseAmountError
Available on crate feature
std
only.1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl PartialEq<ParseAmountError> for ParseAmountError
impl PartialEq<ParseAmountError> for ParseAmountError
sourcefn eq(&self, other: &ParseAmountError) -> bool
fn eq(&self, other: &ParseAmountError) -> bool
impl Eq for ParseAmountError
impl StructuralEq for ParseAmountError
impl StructuralPartialEq for ParseAmountError
Auto Trait Implementations
impl RefUnwindSafe for ParseAmountError
impl Send for ParseAmountError
impl Sync for ParseAmountError
impl Unpin for ParseAmountError
impl UnwindSafe for ParseAmountError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more