Enum ethprim::ParseAddressError
source · pub enum ParseAddressError {
InvalidLength,
InvalidHexCharacter {
c: char,
index: usize,
},
ChecksumMismatch,
}Expand description
Represents an error parsing an address from a string.
Variants
InvalidLength
The string does not have the correct length.
InvalidHexCharacter
An invalid character was found.
ChecksumMismatch
The checksum encoded in the hex string’s case does not match the address.
Trait Implementations
sourceimpl Clone for ParseAddressError
impl Clone for ParseAddressError
sourcefn clone(&self) -> ParseAddressError
fn clone(&self) -> ParseAddressError
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 ParseAddressError
impl Debug for ParseAddressError
sourceimpl Display for ParseAddressError
impl Display for ParseAddressError
sourceimpl Error for ParseAddressError
impl Error for ParseAddressError
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 From<ParseHexError> for ParseAddressError
impl From<ParseHexError> for ParseAddressError
sourcefn from(err: ParseHexError) -> ParseAddressError
fn from(err: ParseHexError) -> ParseAddressError
Converts to this type from the input type.
sourceimpl PartialEq<ParseAddressError> for ParseAddressError
impl PartialEq<ParseAddressError> for ParseAddressError
sourcefn eq(&self, other: &ParseAddressError) -> bool
fn eq(&self, other: &ParseAddressError) -> bool
impl Eq for ParseAddressError
impl StructuralEq for ParseAddressError
impl StructuralPartialEq for ParseAddressError
Auto Trait Implementations
impl RefUnwindSafe for ParseAddressError
impl Send for ParseAddressError
impl Sync for ParseAddressError
impl Unpin for ParseAddressError
impl UnwindSafe for ParseAddressError
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