#[non_exhaustive]pub enum AddressParseErrorKind {
InvalidType(ParseIntError),
MultipleSep,
}
Expand description
Enum to store the cause of an address parsing failure.
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.
InvalidType(ParseIntError)
Unable to parse address num in the address string.
MultipleSep
Address string has more than one ‘#’ separator.
Trait Implementations§
source§impl Clone for AddressParseErrorKind
impl Clone for AddressParseErrorKind
source§fn clone(&self) -> AddressParseErrorKind
fn clone(&self) -> AddressParseErrorKind
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 moresource§impl Debug for AddressParseErrorKind
impl Debug for AddressParseErrorKind
source§impl PartialEq for AddressParseErrorKind
impl PartialEq for AddressParseErrorKind
source§fn eq(&self, other: &AddressParseErrorKind) -> bool
fn eq(&self, other: &AddressParseErrorKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for AddressParseErrorKind
impl StructuralPartialEq for AddressParseErrorKind
Auto Trait Implementations§
impl Freeze for AddressParseErrorKind
impl RefUnwindSafe for AddressParseErrorKind
impl Send for AddressParseErrorKind
impl Sync for AddressParseErrorKind
impl Unpin for AddressParseErrorKind
impl UnwindSafe for AddressParseErrorKind
Blanket Implementations§
source§impl<D> AsyncTryClone for D
impl<D> AsyncTryClone for D
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