Enum printpdf::ColorSpace
source · pub enum ColorSpace {
Rgb,
Rgba,
Palette,
Cmyk,
Greyscale,
GreyscaleAlpha,
}
Expand description
Color space (enum for marking the number of bits a color has)
Variants§
Trait Implementations§
source§impl Clone for ColorSpace
impl Clone for ColorSpace
source§fn clone(&self) -> ColorSpace
fn clone(&self) -> ColorSpace
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 ColorSpace
impl Debug for ColorSpace
source§impl From<ColorSpace> for &'static str
impl From<ColorSpace> for &'static str
source§fn from(val: ColorSpace) -> Self
fn from(val: ColorSpace) -> Self
Converts to this type from the input type.
source§impl From<ColorType> for ColorSpace
impl From<ColorType> for ColorSpace
impl Copy for ColorSpace
Auto Trait Implementations§
impl RefUnwindSafe for ColorSpace
impl Send for ColorSpace
impl Sync for ColorSpace
impl Unpin for ColorSpace
impl UnwindSafe for ColorSpace
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