pub enum ToneCompression {
Auto,
Fixed(f64),
}Expand description
Dynamic range compression applied before dithering.
Only meaningful for measured palettes (ignored for ColorScheme).
Variants§
Auto
Reinhard 2004 skewness-based auto strength. Best for photos.
Fixed(f64)
Fixed blend strength in [0.0, 1.0]. 0.0 disables.
Implementations§
Trait Implementations§
Source§impl Clone for ToneCompression
impl Clone for ToneCompression
Source§fn clone(&self) -> ToneCompression
fn clone(&self) -> ToneCompression
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ToneCompression
Source§impl Debug for ToneCompression
impl Debug for ToneCompression
Source§impl Default for ToneCompression
impl Default for ToneCompression
Source§fn default() -> ToneCompression
fn default() -> ToneCompression
Returns the “default value” for a type. Read more
Source§impl PartialEq for ToneCompression
impl PartialEq for ToneCompression
Source§fn eq(&self, other: &ToneCompression) -> bool
fn eq(&self, other: &ToneCompression) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ToneCompression
Auto Trait Implementations§
impl Freeze for ToneCompression
impl RefUnwindSafe for ToneCompression
impl Send for ToneCompression
impl Sync for ToneCompression
impl Unpin for ToneCompression
impl UnsafeUnpin for ToneCompression
impl UnwindSafe for ToneCompression
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