pub enum ErrorCorrection {
Low,
Medium,
Quartile,
High,
}Available on crate feature
qr_code only.Expand description
The error correction level.
It controls the amount of data that can be damaged while still being able to recover the original information.
A higher error correction level allows for more corrupted data.
Variants§
Low
Low error correction. 7% of the data can be restored.
Medium
Medium error correction. 15% of the data can be restored.
Quartile
Quartile error correction. 25% of the data can be restored.
High
High error correction. 30% of the data can be restored.
Trait Implementations§
Source§impl Clone for ErrorCorrection
impl Clone for ErrorCorrection
Source§fn clone(&self) -> ErrorCorrection
fn clone(&self) -> ErrorCorrection
Returns a duplicate 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 ErrorCorrection
impl Debug for ErrorCorrection
Source§impl From<ErrorCorrection> for EcLevel
impl From<ErrorCorrection> for EcLevel
Source§fn from(ec_level: ErrorCorrection) -> Self
fn from(ec_level: ErrorCorrection) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ErrorCorrection
impl PartialEq for ErrorCorrection
impl Copy for ErrorCorrection
impl Eq for ErrorCorrection
impl StructuralPartialEq for ErrorCorrection
Auto Trait Implementations§
impl Freeze for ErrorCorrection
impl RefUnwindSafe for ErrorCorrection
impl Send for ErrorCorrection
impl Sync for ErrorCorrection
impl Unpin for ErrorCorrection
impl UnsafeUnpin for ErrorCorrection
impl UnwindSafe for ErrorCorrection
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.