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 PartialOrd for EcLevel
impl PartialOrd for EcLevel
impl 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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more