pub enum LossBucket {
Lossless,
NearLossless,
LowLoss,
Moderate,
High,
}Expand description
Perceptual loss buckets, calibrated against CIEDE2000 measurements.
Promoted from test-only type to public API for use with QualityThreshold.
Variants§
Lossless
ΔE < 0.5 — below just-noticeable difference. Model loss ≤ 10.
NearLossless
ΔE 0.5–2.0 — visible only in side-by-side comparison. Model loss 11–50.
LowLoss
ΔE 2.0–5.0 — minor visible differences. Model loss 51–150.
Moderate
ΔE 5.0–15.0 — clearly visible quality difference. Model loss 151–400.
High
ΔE > 15.0 — severe quality degradation. Model loss > 400.
Implementations§
Source§impl LossBucket
impl LossBucket
Trait Implementations§
Source§impl Clone for LossBucket
impl Clone for LossBucket
Source§fn clone(&self) -> LossBucket
fn clone(&self) -> LossBucket
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 LossBucket
impl Debug for LossBucket
Source§impl Hash for LossBucket
impl Hash for LossBucket
Source§impl Ord for LossBucket
impl Ord for LossBucket
Source§fn cmp(&self, other: &LossBucket) -> Ordering
fn cmp(&self, other: &LossBucket) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LossBucket
impl PartialEq for LossBucket
Source§impl PartialOrd for LossBucket
impl PartialOrd for LossBucket
impl Copy for LossBucket
impl Eq for LossBucket
impl StructuralPartialEq for LossBucket
Auto Trait Implementations§
impl Freeze for LossBucket
impl RefUnwindSafe for LossBucket
impl Send for LossBucket
impl Sync for LossBucket
impl Unpin for LossBucket
impl UnsafeUnpin for LossBucket
impl UnwindSafe for LossBucket
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