pub enum SymbolType {
Show 20 variants
None = 0,
Partial = 1,
Ean2 = 2,
Ean5 = 5,
Ean8 = 8,
Upce = 9,
Isbn10 = 10,
Upca = 12,
Ean13 = 13,
Isbn13 = 14,
Composite = 15,
I25 = 25,
Databar = 34,
DatabarExp = 35,
Codabar = 38,
Code39 = 39,
QrCode = 64,
SqCode = 80,
Code93 = 93,
Code128 = 128,
}Expand description
The symbology a Symbol was decoded as.
The discriminants are zbar’s, so ordering comparisons between variants behave as they do there.
Variants§
None = 0
Partial = 1
Something was read, but not a whole symbol.
Scan results carry this for a structured-append QR group that is
missing at least one of its codes: the data is the parts that were
found, joined with a NUL where each absent part belongs, and
components holds a Partial entry in its
place. Treat the data as a fragment — the full message needs the rest
of the group in frame.
Ean2 = 2
Ean5 = 5
Ean8 = 8
Upce = 9
Isbn10 = 10
Upca = 12
Ean13 = 13
Isbn13 = 14
Composite = 15
I25 = 25
Databar = 34
DatabarExp = 35
Codabar = 38
Code39 = 39
QrCode = 64
SqCode = 80
Code93 = 93
Code128 = 128
Trait Implementations§
Source§impl Clone for SymbolType
impl Clone for SymbolType
Source§fn clone(&self) -> SymbolType
fn clone(&self) -> SymbolType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SymbolType
Source§impl Debug for SymbolType
impl Debug for SymbolType
Source§impl Default for SymbolType
impl Default for SymbolType
Source§fn default() -> SymbolType
fn default() -> SymbolType
Returns the “default value” for a type. Read more
Source§impl Display for SymbolType
impl Display for SymbolType
impl Eq for SymbolType
Source§impl From<SymbolType> for i32
impl From<SymbolType> for i32
Source§fn from(value: SymbolType) -> Self
fn from(value: SymbolType) -> Self
Converts to this type from the input type.
Source§impl From<i32> for SymbolType
impl From<i32> for SymbolType
Source§impl FromStr for SymbolType
impl FromStr for SymbolType
Source§fn from_str(s: &str) -> Result<Self, Self::Err>
fn from_str(s: &str) -> Result<Self, Self::Err>
Parse a symbology by its Display name (e.g. "QR-Code",
"EAN-13", "CODE-128"). Every symbology this library decodes is
recognised; None, Partial and Composite name states a symbol can
be in rather than symbologies, so they are not.
Source§type Err = ParseSymbolTypeError
type Err = ParseSymbolTypeError
The associated error which can be returned from parsing.
Source§impl Hash for SymbolType
impl Hash for SymbolType
Source§impl Ord for SymbolType
impl Ord for SymbolType
Source§fn cmp(&self, other: &SymbolType) -> Ordering
fn cmp(&self, other: &SymbolType) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SymbolType
impl PartialEq for SymbolType
Source§impl PartialOrd for SymbolType
impl PartialOrd for SymbolType
impl StructuralPartialEq for SymbolType
Auto Trait Implementations§
impl Freeze for SymbolType
impl RefUnwindSafe for SymbolType
impl Send for SymbolType
impl Sync for SymbolType
impl Unpin for SymbolType
impl UnsafeUnpin for SymbolType
impl UnwindSafe for SymbolType
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