pub struct IccColorSpace {
pub n: u32,
pub profile_data: Arc<Vec<u8>>,
pub profile_hash: ProfileHash,
}Expand description
Pre-resolved ICCBased color space ready for PDF emission.
Fields§
§n: u32Number of components (1, 3, or 4).
profile_data: Arc<Vec<u8>>Raw ICC profile bytes (Arc-shared so multiple paints can dedup to a single PDF stream).
profile_hash: ProfileHashProfile hash, used both as a writer-side dedup key and to keep the IccCache lookups in sync with the rasterizer.
Trait Implementations§
Source§impl Clone for IccColorSpace
impl Clone for IccColorSpace
Source§fn clone(&self) -> IccColorSpace
fn clone(&self) -> IccColorSpace
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for IccColorSpace
impl RefUnwindSafe for IccColorSpace
impl Send for IccColorSpace
impl Sync for IccColorSpace
impl Unpin for IccColorSpace
impl UnsafeUnpin for IccColorSpace
impl UnwindSafe for IccColorSpace
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