Struct lcms2::Flags

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

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

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

Tuple Fields§

§0: u32

Implementations§

source§

impl Flags

source

pub const NO_CACHE: Flags<DisallowCache> = _

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

source

pub const NO_OPTIMIZE: Flags = _

Inhibit optimizations

source

pub const NULL_TRANSFORM: Flags = _

Don’t transform anyway

source

pub const GAMUT_CHECK: Flags = _

Proofing flags Out of Gamut alarm

source

pub const SOFT_PROOFING: Flags = _

Do softproofing

source

pub const BLACKPOINT_COMPENSATION: Flags = _

source

pub const NO_WHITE_ON_WHITE_FIXUP: Flags = _

Don’t fix scum dot

source

pub const HIGHRES_PRECALC: Flags = _

Use more memory to give better accurancy

source

pub const LOWRES_PRECALC: Flags = _

Use less memory to minimize resources

For devicelink creation Create 8 bits devicelinks

source

pub const GUESS_DEVICE_CLASS: Flags = _

Guess device class (for transform2devicelink)

source

pub const KEEP_SEQUENCE: Flags = _

Keep profile sequence for devicelink creation

source

pub const FORCE_CLUT: Flags = _

Specific to a particular optimizations Force CLUT optimization

source

pub const CLUT_POST_LINEARIZATION: Flags = _

create postlinearization tables if possible

source

pub const CLUT_PRE_LINEARIZATION: Flags = _

create prelinearization tables if possible

source

pub const NO_NEGATIVES: Flags = _

Specific to unbounded mode Prevent negative numbers in floating point transforms

source

pub const COPY_ALPHA: Flags = _

Alpha channels are copied on cmsDoTransform()

source

pub const NO_DEFAULT_RESOURCE_DEF: Flags = _

CRD special

source§

impl<T: CacheFlag> Flags<T>

source

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

Trait Implementations§

source§

impl<T: Clone + CacheFlag> Clone for Flags<T>

source§

fn clone(&self) -> Flags<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: Debug + CacheFlag> Debug for Flags<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Flags

source§

fn default() -> Self

Default flags

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

source§

impl<T: Copy + CacheFlag> Copy for Flags<T>

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.