Enum isbn2::IsbnError[][src]

pub enum IsbnError {
    InvalidLength,
    InvalidDigit,
    InvalidGroup,
    UndefinedRange,
    InvalidChecksum,
    InvalidConversion,
    DigitTooLarge,
}

An error which can be returned when parsing an ISBN.

Variants

InvalidLength

The given string is too short or too long to be an ISBN.

InvalidDigit

Encountered an invalid digit while parsing.

InvalidGroup

Encountered an invalid ISBN registration group.

UndefinedRange

Encountered a range not defined for use at this time.

InvalidChecksum

Failed to validate checksum.

InvalidConversion

Failed to convert to ISBN10.

DigitTooLarge

One or supplied more digits were too large.

Trait Implementations

impl Debug for IsbnError[src]

impl Display for IsbnError[src]

impl From<CapacityError<u8>> for IsbnError[src]

impl From<ParseIntError> for IsbnError[src]

impl PartialEq<IsbnError> for IsbnError[src]

impl StructuralPartialEq for IsbnError[src]

Auto Trait Implementations

impl Send for IsbnError

impl Sync for IsbnError

impl Unpin for IsbnError

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.