pub enum UPCError {
UPCOverflow,
CheckDigitOverflow,
}
Expand description
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§
Trait Implementations§
impl StructuralPartialEq for UPCError
Auto Trait Implementations§
impl Freeze for UPCError
impl RefUnwindSafe for UPCError
impl Send for UPCError
impl Sync for UPCError
impl Unpin for UPCError
impl UnwindSafe for UPCError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)