[][src]Enum upc_checker::UPCError

pub enum UPCError {
    UPCOverflow,
    CheckDigitOverflow,
}

Error enum for the UPCs. This is responsable for the Error return on the Result<T, E> E (error) on the UPC.check_upc() method and commonly implaments errors when users use standards implamented by the UPCStandard wrongly.

Error Types

  • UPCOverflow: When the i8 array implamented in the standards defined by the UPCStandard enum has been overflown with data that is not 0-9 (1 digit)
  • CheckDigitOverflow: When the i8 check_digit value implamented in the UPC has been overflown with data that is not 0-9 (1 digit)

Variants

UPCOverflowCheckDigitOverflow

Trait Implementations

impl Debug for UPCError[src]

impl PartialEq<UPCError> for UPCError[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl Clone for UPCError[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Unpin for UPCError

impl Sync for UPCError

impl Send for UPCError

Blanket Implementations

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> Into<U> for T where
    U: From<T>, 
[src]

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

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.

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

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

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