Enum luhn::LuhnError [] [src]

pub enum LuhnError {
    NotUnique(char),
    InvalidCharacter(char),
    EmptyString,
}

The error type for this crate.

Variants

The given alphabet has a duplicated character.

The input string has a character that is invalid for the alphabet.

The input was the empty string or a single character.

Trait Implementations

impl Debug for LuhnError
[src]

Formats the value using the given formatter.

impl PartialEq for LuhnError
[src]

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

This method tests for !=.

impl Eq for LuhnError
[src]

impl PartialOrd for LuhnError
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for LuhnError
[src]

This method returns an Ordering between self and other. Read more

impl Hash for LuhnError
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more