Enum bitcoin_bech32::Error
[−]
[src]
pub enum Error { Bech32(Error), WitnessProgram(WitnessProgramError), InvalidHumanReadablePart, }
Error types while encoding and decoding SegWit addresses
Variants
Bech32(Error)
Some Bech32 conversion error
WitnessProgram(WitnessProgramError)
Some witness program error
InvalidHumanReadablePart
The human-readable part is invalid (must be "bc" or "tb")
Trait Implementations
impl PartialEq for Error
[src]
fn eq(&self, __arg_0: &Error) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Error) -> bool
[src]
This method tests for !=
.
impl Debug for Error
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl From<Error> for Error
[src]
impl From<WitnessProgramError> for Error
[src]
fn from(e: WitnessProgramError) -> Error
[src]
Performs the conversion.
impl Display for Error
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more