Struct printpdf::icc_profile::IccProfile
source · pub struct IccProfile {
pub has_alternate: bool,
pub has_range: bool,
/* private fields */
}
Expand description
Icc profile
Fields§
§has_alternate: bool
Does the ICC profile have an “Alternate” version or not?
has_range: bool
Does the ICC profile have an “Range” dictionary Really not sure why this is needed, but this is needed on the documents Info dictionary
Implementations§
source§impl IccProfile
impl IccProfile
sourcepub fn new(icc: Vec<u8>, icc_type: IccProfileType) -> Self
pub fn new(icc: Vec<u8>, icc_type: IccProfileType) -> Self
Creates a new Icc Profile
sourcepub fn with_alternate_profile(self, has_alternate: bool) -> Self
pub fn with_alternate_profile(self, has_alternate: bool) -> Self
Does the ICC profile have an alternate version (such as “DeviceCMYk”)?
sourcepub fn with_range(self, has_range: bool) -> Self
pub fn with_range(self, has_range: bool) -> Self
Does the ICC profile have an “Range” dictionary?
Trait Implementations§
source§impl Clone for IccProfile
impl Clone for IccProfile
source§fn clone(&self) -> IccProfile
fn clone(&self) -> IccProfile
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for IccProfile
impl Debug for IccProfile
source§impl From<IccProfile> for Stream
impl From<IccProfile> for Stream
source§fn from(val: IccProfile) -> Self
fn from(val: IccProfile) -> Self
Converts to this type from the input type.
source§impl PartialEq for IccProfile
impl PartialEq for IccProfile
source§fn eq(&self, other: &IccProfile) -> bool
fn eq(&self, other: &IccProfile) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for IccProfile
Auto Trait Implementations§
impl RefUnwindSafe for IccProfile
impl Send for IccProfile
impl Sync for IccProfile
impl Unpin for IccProfile
impl UnwindSafe for IccProfile
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