Enum iced::widget::qr_code::ErrorCorrection
source · 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 copy 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 PartialEq<ErrorCorrection> for ErrorCorrection
impl PartialEq<ErrorCorrection> for ErrorCorrection
source§fn eq(&self, other: &ErrorCorrection) -> bool
fn eq(&self, other: &ErrorCorrection) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ErrorCorrection
impl Eq for ErrorCorrection
impl StructuralEq for ErrorCorrection
impl StructuralPartialEq for ErrorCorrection
Auto Trait Implementations§
impl RefUnwindSafe for ErrorCorrection
impl Send for ErrorCorrection
impl Sync for ErrorCorrection
impl Unpin for ErrorCorrection
impl UnwindSafe for ErrorCorrection
Blanket Implementations§
source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: FloatComponent,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: FloatComponent, Swp: WhitePoint, Dwp: WhitePoint, D: AdaptFrom<S, Swp, Dwp, T>,
source§fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere M: TransformMatrix<Swp, Dwp, T>,
Convert the source color to the destination color using the specified
method
source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
Convert the source color to the destination color using the bradford
method by default
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
impl<T, U> IntoColor<U> for Twhere U: FromColor<T>,
source§fn into_color(self) -> U
fn into_color(self) -> U
Convert into T with values clamped to the color defined bounds Read more
source§impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
impl<T, U> IntoColorUnclamped<U> for Twhere U: FromColorUnclamped<T>,
source§fn into_color_unclamped(self) -> U
fn into_color_unclamped(self) -> U
Convert into T. The resulting color might be invalid in its color space Read more
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
impl<T, U> TryIntoColor<U> for Twhere U: TryFromColor<T>,
source§fn try_into_color(self) -> Result<U, OutOfBounds<U>>
fn try_into_color(self) -> Result<U, OutOfBounds<U>>
Convert into T, returning ok if the color is inside of its defined
range, otherwise an
OutOfBounds
error is returned which contains
the unclamped color. Read more