pub struct ColorPt {
pub c0: f64,
pub c1: f64,
pub c2: f64,
pub c3: f64,
}Expand description
A color value with up to 4 components.
Interpretation depends on the color space:
- DeviceGray: c0 = gray level
- DeviceRGB: c0 = R, c1 = G, c2 = B
- DeviceCMYK: c0 = C, c1 = M, c2 = Y, c3 = K
Fields§
§c0: f64§c1: f64§c2: f64§c3: f64Implementations§
Trait Implementations§
impl Copy for ColorPt
impl StructuralPartialEq for ColorPt
Auto Trait Implementations§
impl Freeze for ColorPt
impl RefUnwindSafe for ColorPt
impl Send for ColorPt
impl Sync for ColorPt
impl Unpin for ColorPt
impl UnsafeUnpin for ColorPt
impl UnwindSafe for ColorPt
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