pub enum Ecl {
Low,
Medium,
Quartile,
High,
}Expand description
Error correction level for QR code generation.
Higher levels increase data recovery at the cost of larger QR codes.
QrCode::new defaults to Ecl::Medium.
Variants§
Low
Low — recovers ~7% of data.
Medium
Medium — recovers ~15% of data. This is the default.
Quartile
Quartile — recovers ~25% of data.
High
High — recovers ~30% of data.
Trait Implementations§
impl Copy for Ecl
impl Eq for Ecl
impl StructuralPartialEq for Ecl
Auto Trait Implementations§
impl Freeze for Ecl
impl RefUnwindSafe for Ecl
impl Send for Ecl
impl Sync for Ecl
impl Unpin for Ecl
impl UnsafeUnpin for Ecl
impl UnwindSafe for Ecl
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.