#[repr(C)]pub struct DeviceN8 {
pub cmyk: Cmyk8,
pub spots: [u8; 4],
}Expand description
Re-export every public type from the color crate, including all
arithmetic helpers from color::convert.
Downstream modules within this crate can import everything they need with
a single use crate::types::*.
CMYK + 4 spot channels, 8 bytes/pixel, wire layout [C, M, Y, K, S0, S1, S2, S3].
Used with -overprint. SPOT_NCOMPS = 4 is fixed at compile time,
matching the C++ default.
Fields§
§cmyk: Cmyk8Process CMYK channels.
spots: [u8; 4]Spot channels S0–S3, 0 = no ink, 255 = full coverage.
Trait Implementations§
impl Copy for DeviceN8
impl Eq for DeviceN8
impl Pod for DeviceN8
impl StructuralPartialEq for DeviceN8
Auto Trait Implementations§
impl Freeze for DeviceN8
impl RefUnwindSafe for DeviceN8
impl Send for DeviceN8
impl Sync for DeviceN8
impl Unpin for DeviceN8
impl UnsafeUnpin for DeviceN8
impl UnwindSafe for DeviceN8
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.