pub enum GamutWarning {
None,
Replace(RgbColor),
}Expand description
Gamut warning indicator for out-of-gamut pixels.
When soft proofing, pixels that fall outside the output device’s gamut can be flagged with a warning color.
§Examples
use appthere_color::{GamutWarning, RgbColor};
let warning = GamutWarning::Replace(RgbColor::new(1.0, 0.0, 1.0));Variants§
None
No gamut warning — out-of-gamut colors pass through unchanged.
Replace(RgbColor)
Replace out-of-gamut pixels with the specified RGB warning color.
Trait Implementations§
Source§impl Clone for GamutWarning
impl Clone for GamutWarning
Source§fn clone(&self) -> GamutWarning
fn clone(&self) -> GamutWarning
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 GamutWarning
impl Debug for GamutWarning
Source§impl Default for GamutWarning
impl Default for GamutWarning
Source§fn default() -> Self
fn default() -> Self
Returns GamutWarning::None as the default.
Source§impl PartialEq for GamutWarning
impl PartialEq for GamutWarning
impl Copy for GamutWarning
impl StructuralPartialEq for GamutWarning
Auto Trait Implementations§
impl Freeze for GamutWarning
impl RefUnwindSafe for GamutWarning
impl Send for GamutWarning
impl Sync for GamutWarning
impl Unpin for GamutWarning
impl UnsafeUnpin for GamutWarning
impl UnwindSafe for GamutWarning
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