[][src]Crate upc_checker

Structs

UPC

Main UPC structure containing the base UPC code alonside it's check digit. This is the core of the upc_checker library

Enums

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.

UPCStandard

The impamentations on the widely-used UPC code standards as simple i8 arrays with a defined length. These arrays should only have ints that are 0-9 (1 digit) otherwise UPC.upc_check() will throw an error defined as UPCError::UPCOverflow.