Enum pdf_writer::types::OverprintMode
source · pub enum OverprintMode {
OverrideAllColorants,
IgnoreZeroChannel,
}Expand description
How to behave when overprinting for colorants with the value zero.
Variants§
OverrideAllColorants
An overprint operation will always discard the underlying color, even if one of the colorants is zero.
IgnoreZeroChannel
An overprint operation will only discard the underlying colorant component (e.g. cyan in CMYK) if the new corresponding colorant is non-zero.
Trait Implementations§
source§impl Clone for OverprintMode
impl Clone for OverprintMode
source§fn clone(&self) -> OverprintMode
fn clone(&self) -> OverprintMode
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 OverprintMode
impl Debug for OverprintMode
source§impl Hash for OverprintMode
impl Hash for OverprintMode
source§impl PartialEq for OverprintMode
impl PartialEq for OverprintMode
source§fn eq(&self, other: &OverprintMode) -> bool
fn eq(&self, other: &OverprintMode) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for OverprintMode
impl Eq for OverprintMode
impl StructuralEq for OverprintMode
impl StructuralPartialEq for OverprintMode
Auto Trait Implementations§
impl RefUnwindSafe for OverprintMode
impl Send for OverprintMode
impl Sync for OverprintMode
impl Unpin for OverprintMode
impl UnwindSafe for OverprintMode
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