[][src]Enum isbn::IsbnError

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

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.

Trait Implementations

impl Debug for IsbnError
[src]

impl PartialEq<IsbnError> for IsbnError
[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl From<ParseIntError> for IsbnError
[src]

Auto Trait Implementations

impl Send for IsbnError

impl Sync for IsbnError

Blanket Implementations

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> From for T
[src]

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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