pub enum EcLevel {
L = 0,
M = 1,
Q = 2,
H = 3,
}
Expand description
The error correction level. It allows the original information be recovered even if parts of the code is damaged.
Variants§
L = 0
Low error correction. Allows up to 7% of wrong blocks.
M = 1
Medium error correction (default). Allows up to 15% of wrong blocks.
Q = 2
“Quartile” error correction. Allows up to 25% of wrong blocks.
H = 3
High error correction. Allows up to 30% of wrong blocks.
Trait Implementations§
source§impl Ord for EcLevel
impl Ord for EcLevel
source§impl PartialEq for EcLevel
impl PartialEq for EcLevel
source§impl PartialOrd for EcLevel
impl PartialOrd for EcLevel
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for EcLevel
impl Eq for EcLevel
impl StructuralPartialEq for EcLevel
Auto Trait Implementations§
impl Freeze for EcLevel
impl RefUnwindSafe for EcLevel
impl Send for EcLevel
impl Sync for EcLevel
impl Unpin for EcLevel
impl UnwindSafe for EcLevel
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)