#[non_exhaustive]pub enum GamutMapping {
Perceptual,
Relative,
Saturation,
Absolute,
Desaturate,
Darken,
Clip,
Softclip,
Highlight,
Linear,
}Expand description
How out-of-gamut colours are brought into the target gamut.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Perceptual
Relative
Saturation
Absolute
Desaturate
Darken
Clip
Softclip
Soft-knee clip in IPT, hue-preserving.
Highlight
Like perceptual, but keeps the highlights’ saturation.
Linear
Linear chroma compression of the whole gamut.
Implementations§
Trait Implementations§
Source§impl Clone for GamutMapping
impl Clone for GamutMapping
impl Copy for GamutMapping
Source§impl Debug for GamutMapping
impl Debug for GamutMapping
Source§impl Display for GamutMapping
impl Display for GamutMapping
impl Eq for GamutMapping
Source§impl FromStr for GamutMapping
impl FromStr for GamutMapping
Source§impl Hash for GamutMapping
impl Hash for GamutMapping
Source§impl PartialEq for GamutMapping
impl PartialEq for GamutMapping
impl StructuralPartialEq for GamutMapping
Auto Trait Implementations§
impl Forget for GamutMapping
impl Freeze for GamutMapping
impl RefUnwindSafe for GamutMapping
impl Send for GamutMapping
impl Sync for GamutMapping
impl Unpin for GamutMapping
impl UnsafeUnpin for GamutMapping
impl UnwindSafe for GamutMapping
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.