#[non_exhaustive]pub enum SymbolErrorCorrection {
DetectionOnly,
Low,
Medium,
Quartile,
High,
}Available on crate features
micro-qr or qr or rmqr only.Expand description
The error correction level written to an encoded symbol.
The available variants depend on the enabled symbol family features.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DetectionOnly
Available on crate feature
micro-qr only.Detects errors in a Micro QR M1 symbol without correcting them.
Low
Uses the Low error correction level.
Medium
Uses the Medium error correction level.
Quartile
Uses the Quartile error correction level.
High
Available on crate features
qr or rmqr only.Uses the High error correction level.
Trait Implementations§
Source§impl Clone for SymbolErrorCorrection
impl Clone for SymbolErrorCorrection
Source§fn clone(&self) -> SymbolErrorCorrection
fn clone(&self) -> SymbolErrorCorrection
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 SymbolErrorCorrection
Source§impl Debug for SymbolErrorCorrection
impl Debug for SymbolErrorCorrection
impl Eq for SymbolErrorCorrection
Source§impl From<MicroErrorCorrection> for SymbolErrorCorrection
Available on crate feature micro-qr only.
impl From<MicroErrorCorrection> for SymbolErrorCorrection
Available on crate feature
micro-qr only.Source§fn from(value: MicroErrorCorrection) -> Self
fn from(value: MicroErrorCorrection) -> Self
Converts to this type from the input type.
Source§impl From<QrErrorCorrection> for SymbolErrorCorrection
Available on crate feature qr only.
impl From<QrErrorCorrection> for SymbolErrorCorrection
Available on crate feature
qr only.Source§fn from(value: QrErrorCorrection) -> Self
fn from(value: QrErrorCorrection) -> Self
Converts to this type from the input type.
Source§impl From<RmqrErrorCorrection> for SymbolErrorCorrection
Available on crate feature rmqr only.
impl From<RmqrErrorCorrection> for SymbolErrorCorrection
Available on crate feature
rmqr only.Source§fn from(value: RmqrErrorCorrection) -> Self
fn from(value: RmqrErrorCorrection) -> Self
Converts to this type from the input type.
Source§impl Hash for SymbolErrorCorrection
impl Hash for SymbolErrorCorrection
Source§impl Ord for SymbolErrorCorrection
impl Ord for SymbolErrorCorrection
Source§fn cmp(&self, other: &SymbolErrorCorrection) -> Ordering
fn cmp(&self, other: &SymbolErrorCorrection) -> 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 SymbolErrorCorrection
impl PartialEq for SymbolErrorCorrection
Source§impl PartialOrd for SymbolErrorCorrection
impl PartialOrd for SymbolErrorCorrection
impl StructuralPartialEq for SymbolErrorCorrection
Auto Trait Implementations§
impl Freeze for SymbolErrorCorrection
impl RefUnwindSafe for SymbolErrorCorrection
impl Send for SymbolErrorCorrection
impl Sync for SymbolErrorCorrection
impl Unpin for SymbolErrorCorrection
impl UnsafeUnpin for SymbolErrorCorrection
impl UnwindSafe for SymbolErrorCorrection
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