[][src]Enum luhn::LuhnError

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

The error type for this crate.

Variants

NotUnique(char)

The given alphabet has a duplicated character.

InvalidCharacter(char)

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

EmptyString

The input was the empty string or a single character.

Trait Implementations

impl Debug for LuhnError[src]

impl Eq for LuhnError[src]

impl Hash for LuhnError[src]

impl Ord for LuhnError[src]

impl PartialEq<LuhnError> for LuhnError[src]

impl PartialOrd<LuhnError> for LuhnError[src]

impl StructuralEq for LuhnError[src]

impl StructuralPartialEq for LuhnError[src]

Auto Trait Implementations

impl RefUnwindSafe for LuhnError

impl Send for LuhnError

impl Sync for LuhnError

impl Unpin for LuhnError

impl UnwindSafe for LuhnError

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.