pub enum Model {
Rgb,
Hsl,
Hwb,
Lab,
Lch,
Oklab,
Oklch,
Color(Predefined),
DeviceCmyk,
}Expand description
How a color’s channels are to be read.
Variants§
Rgb
sRGB, 0 to 255: hex, named colors, rgb() and rgba().
Hsl
Hue in degrees, saturation and lightness in percent.
Hwb
Hue, whiteness and blackness.
Lab
Lch
Oklab
Oklch
Color(Predefined)
color(space …).
DeviceCmyk
device-cmyk(), four channels from 0 to 1.
Trait Implementations§
impl Copy for Model
impl Eq for Model
impl StructuralPartialEq for Model
Auto Trait Implementations§
impl Forget for Model
impl Freeze for Model
impl Move for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnsafeUnpin for Model
impl UnwindSafe for Model
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