[][src]Struct printpdf::types::plugins::graphics::icc_profile::IccProfile

pub struct IccProfile {
    pub has_alternate: bool,
    pub has_range: bool,
    // some fields omitted
}

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

impl IccProfile[src]

pub fn new(icc: Vec<u8>, icc_type: IccProfileType) -> Self[src]

Creates a new Icc Profile

pub fn with_alternate_profile(self, has_alternate: bool) -> Self[src]

Does the ICC profile have an alternate version (such as "DeviceCMYk")?

pub fn with_range(self, has_range: bool) -> Self[src]

Does the ICC profile have an "Range" dictionary?

Trait Implementations

impl Clone for IccProfile[src]

impl Debug for IccProfile[src]

impl Into<Stream> for IccProfile[src]

impl PartialEq<IccProfile> for IccProfile[src]

impl StructuralPartialEq for IccProfile[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.