pub enum BarcodeValue {
}Expand description
A value in a barcode, consists of regular characters, digits for Code C, and control codes.
Variants§
RegularCharacter(char)
A regular character, also includes control characters.
Digit(u8)
A Code C digit, the numbers 0 through 9 are actually 00 through 09.
FNC1
Used to indicate a GS1-128 barcode
FNC2
Indicates that the currently scanned string should be prepended to the next scan
FNC3
Initialize, used for programming scanners
FNC4
Used for extended ASCII support.
StartA
The code used to signal we start in variant A
StartB
The code used to signal we start in variant B
StartC
The code used to signal we start in variant C
Stop
Not actually the stop code, just the one used at the end.
ShiftA
Use variant A for the next character
ShiftB
Use variant B for the next character
CodeA
Switch to variant A from here on out
CodeB
Switch to variant B from here on out
CodeC
Switch to variant C from here on out
Trait Implementations§
Source§impl Clone for BarcodeValue
impl Clone for BarcodeValue
Source§fn clone(&self) -> BarcodeValue
fn clone(&self) -> BarcodeValue
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for BarcodeValue
Source§impl Debug for BarcodeValue
impl Debug for BarcodeValue
impl Eq for BarcodeValue
Source§impl From<char> for BarcodeValue
impl From<char> for BarcodeValue
Source§impl From<u8> for BarcodeValue
impl From<u8> for BarcodeValue
Source§impl PartialEq for BarcodeValue
impl PartialEq for BarcodeValue
Source§fn eq(&self, other: &BarcodeValue) -> bool
fn eq(&self, other: &BarcodeValue) -> bool
self and other values to be equal, and is used by ==.