pub enum AddressParseError {
InvalidLength,
InvalidCharacter,
Overflow,
}Expand description
Errors returned while parsing a textual UMSH address.
Variants§
InvalidLength
The length matches neither the 44-character base58 form nor the 64-character base16 form.
InvalidCharacter
A character was outside the expected alphabet.
Overflow
The base58 value does not fit in 32 bytes.
Trait Implementations§
Source§impl Clone for AddressParseError
impl Clone for AddressParseError
Source§fn clone(&self) -> AddressParseError
fn clone(&self) -> AddressParseError
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AddressParseError
impl Debug for AddressParseError
Source§impl Display for AddressParseError
impl Display for AddressParseError
Source§impl Error for AddressParseError
Available on crate feature std only.
impl Error for AddressParseError
Available on crate feature
std only.1.30.0§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.0.0§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for AddressParseError
impl PartialEq for AddressParseError
impl Copy for AddressParseError
impl Eq for AddressParseError
impl StructuralPartialEq for AddressParseError
Auto Trait Implementations§
impl Freeze for AddressParseError
impl RefUnwindSafe for AddressParseError
impl Send for AddressParseError
impl Sync for AddressParseError
impl Unpin for AddressParseError
impl UnwindSafe for AddressParseError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)