[][src]Struct lcms2::Flags

pub struct Flags<T: CacheFlag = AllowCache>(pub u32, _);

Flags for creating Transform. Can be OR-ed together with |.

There's a special NO_CACHE flag that enables sharing transform between threads.

Methods

impl Flags[src]

pub const NO_CACHE: Flags<DisallowCache>[src]

Inhibit 1-pixel cache. This is required to make Transform implement Sync

pub const NO_OPTIMIZE: Flags[src]

Inhibit optimizations

pub const NULL_TRANSFORM: Flags[src]

Don't transform anyway

pub const GAMUT_CHECK: Flags[src]

Proofing flags Out of Gamut alarm

pub const SOFT_PROOFING: Flags[src]

Do softproofing

pub const BLACKPOINT_COMPENSATION: Flags[src]

pub const NO_WHITE_ON_WHITE_FIXUP: Flags[src]

Don't fix scum dot

pub const HIGHRES_PRECALC: Flags[src]

Use more memory to give better accurancy

pub const LOWRES_PRECALC: Flags[src]

Use less memory to minimize resources

For devicelink creation Create 8 bits devicelinks

pub const GUESS_DEVICE_CLASS: Flags[src]

Guess device class (for transform2devicelink)

pub const KEEP_SEQUENCE: Flags[src]

Keep profile sequence for devicelink creation

pub const FORCE_CLUT: Flags[src]

Specific to a particular optimizations Force CLUT optimization

pub const CLUT_POST_LINEARIZATION: Flags[src]

create postlinearization tables if possible

pub const CLUT_PRE_LINEARIZATION: Flags[src]

create prelinearization tables if possible

pub const NO_NEGATIVES: Flags[src]

Specific to unbounded mode Prevent negative numbers in floating point transforms

pub const COPY_ALPHA: Flags[src]

Alpha channels are copied on cmsDoTransform()

pub const NO_DEFAULT_RESOURCE_DEF: Flags[src]

CRD special

impl<T: CacheFlag> Flags<T>[src]

pub fn has<F: CacheFlag>(&mut self, flag: Flags<F>) -> bool[src]

Trait Implementations

impl<T: Copy + CacheFlag> Copy for Flags<T>[src]

impl Default for Flags[src]

fn default() -> Self[src]

Default flags

By default allows non-thread-safe cache, which improves performance, but limits transforms to use by one thread only.

impl<T: Clone + CacheFlag> Clone for Flags<T>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<T: CacheFlag> BitOr<Flags<T>> for Flags<DisallowCache>[src]

type Output = Flags<DisallowCache>

The resulting type after applying the | operator.

impl<T: CacheFlag> BitOr<Flags<T>> for Flags<AllowCache>[src]

type Output = Flags<T>

The resulting type after applying the | operator.

impl<T: Debug + CacheFlag> Debug for Flags<T>[src]

Auto Trait Implementations

impl<T> Send for Flags<T> where
    T: Send

impl<T> Unpin for Flags<T> where
    T: Unpin

impl<T> Sync for Flags<T> where
    T: Sync

impl<T> UnwindSafe for Flags<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for Flags<T> where
    T: RefUnwindSafe

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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