Enum genpdf::style::Color [−][src]
Expand description
A color, represented by RGB, CMYK or Greyscale values.
For all variants, the possible values range from 0 to 255.
Examples
let red = genpdf::style::Color::Rgb(255, 0, 0); let cyan = genpdf::style::Color::Cmyk(255, 0, 0, 0); let grey = genpdf::style::Color::Greyscale(127);
Variants
An RGB color with red, green and blue values between 0 and 255.
An CMYK color with cyan, magenta, yellow and key values between 0 and 255.
Greyscale(u8)
A greyscale color with a value between 0 and 255.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Color
impl UnwindSafe for Color
Blanket Implementations
Mutably borrows from an owned value. Read more