Enum base16::DecodeError [] [src]

pub enum DecodeError {
    InvalidByte {
        index: usize,
        byte: u8,
    },
    InvalidLength {
        length: usize,
    },
}

Represents a problem with the data we want to decode.

Variants

An invalid byte was found in the input (bytes must be [0-9a-fA-F])

Fields of InvalidByte

The index at which the problematic byte was found.

The byte that we cannot decode.

The length of the input not a multiple of two

Fields of InvalidLength

The input length.

Trait Implementations

impl Debug for DecodeError
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for DecodeError
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for DecodeError
[src]

impl Clone for DecodeError
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Display for DecodeError
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for DecodeError
[src]

[src]

A short description of the error. Read more

[src]

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

Auto Trait Implementations

impl Send for DecodeError

impl Sync for DecodeError