[−][src]Enum upc_checker::UPCError
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 theUPC
has been overflown with data that is not 0-9 (1 digit)
Variants
UPCOverflow
CheckDigitOverflow
Trait Implementations
impl Debug for UPCError
[src]
impl PartialEq<UPCError> for UPCError
[src]
fn eq(&self, other: &UPCError) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Clone for UPCError
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,