Enum bitcoin::util::hash::HexError [] [src]

pub enum HexError {
    BadLength(usize),
    BadCharacter(char),
}

Hex deserialization error

Variants

BadLength(usize)

Length was not 64 characters

BadCharacter(char)

Non-hex character in string

Trait Implementations

impl Debug for HexError
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Eq for HexError
[src]

impl PartialEq for HexError
[src]

fn eq(&self, __arg_0: &HexError) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &HexError) -> bool

This method tests for !=.

impl Clone for HexError
[src]

fn clone(&self) -> HexError

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for HexError
[src]

impl Display for HexError
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Error for HexError
[src]

fn cause(&self) -> Option<&Error>

The lower-level cause of this error, if any. Read more

fn description(&self) -> &str

A short description of the error. Read more