Enum rxing::BarcodeFormat
source · pub enum BarcodeFormat {
Show 18 variants
AZTEC,
CODABAR,
CODE_39,
CODE_93,
CODE_128,
DATA_MATRIX,
EAN_8,
EAN_13,
ITF,
MAXICODE,
PDF_417,
QR_CODE,
RSS_14,
RSS_EXPANDED,
UPC_A,
UPC_E,
UPC_EAN_EXTENSION,
UNSUPORTED_FORMAT,
}Expand description
Enumerates barcode formats known to this package. Please keep alphabetized.
@author Sean Owen
Variants§
AZTEC
Aztec 2D barcode format.
CODABAR
CODABAR 1D format.
CODE_39
Code 39 1D format.
CODE_93
Code 93 1D format.
CODE_128
Code 128 1D format.
DATA_MATRIX
Data Matrix 2D barcode format.
EAN_8
EAN-8 1D format.
EAN_13
EAN-13 1D format.
ITF
ITF (Interleaved Two of Five) 1D format.
MAXICODE
MaxiCode 2D barcode format.
PDF_417
PDF417 format.
QR_CODE
QR Code 2D barcode format.
RSS_14
RSS 14
RSS_EXPANDED
RSS EXPANDED
UPC_A
UPC-A 1D format.
UPC_E
UPC-E 1D format.
UPC_EAN_EXTENSION
UPC/EAN extension format. Not a stand-alone format.
UNSUPORTED_FORMAT
Trait Implementations§
source§impl Clone for BarcodeFormat
impl Clone for BarcodeFormat
source§fn clone(&self) -> BarcodeFormat
fn clone(&self) -> BarcodeFormat
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for BarcodeFormat
impl Debug for BarcodeFormat
source§impl Display for BarcodeFormat
impl Display for BarcodeFormat
source§impl From<&str> for BarcodeFormat
impl From<&str> for BarcodeFormat
source§impl From<String> for BarcodeFormat
impl From<String> for BarcodeFormat
source§impl Hash for BarcodeFormat
impl Hash for BarcodeFormat
source§impl PartialEq<BarcodeFormat> for BarcodeFormat
impl PartialEq<BarcodeFormat> for BarcodeFormat
source§fn eq(&self, other: &BarcodeFormat) -> bool
fn eq(&self, other: &BarcodeFormat) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for BarcodeFormat
impl Eq for BarcodeFormat
impl StructuralEq for BarcodeFormat
impl StructuralPartialEq for BarcodeFormat
Auto Trait Implementations§
impl RefUnwindSafe for BarcodeFormat
impl Send for BarcodeFormat
impl Sync for BarcodeFormat
impl Unpin for BarcodeFormat
impl UnwindSafe for BarcodeFormat
Blanket Implementations§
§impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
§fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Convert the given value into an approximately equivalent representation.
§impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
§fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Convert the subject into an approximately equivalent representation.
§impl<T, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
§impl<T> ConvUtil for T
impl<T> ConvUtil for T
§fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, DefaultApprox>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, DefaultApprox>,
Approximate the subject to a given type with the default scheme.
§fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
Approximate the subject to a given type with a specific scheme.
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.§impl<Src> TryFrom<Src> for Src
impl<Src> TryFrom<Src> for Src
§impl<Src, Dst> TryInto<Dst> for Srcwhere
Dst: TryFrom<Src>,
impl<Src, Dst> TryInto<Dst> for Srcwhere
Dst: TryFrom<Src>,
§impl<Src> ValueFrom<Src> for Src
impl<Src> ValueFrom<Src> for Src
§fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
Convert the given value into an exactly equivalent representation.
§impl<Src, Dst> ValueInto<Dst> for Srcwhere
Dst: ValueFrom<Src>,
impl<Src, Dst> ValueInto<Dst> for Srcwhere
Dst: ValueFrom<Src>,
§fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>
fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>
Convert the subject into an exactly equivalent representation.