[][src]Enum prisma::ycbcr::YCbCrOutOfGamutMode

pub enum YCbCrOutOfGamutMode {
    Preserve,
    Clip,
}

Methods for handling out of gamut colors when converting to Rgb.

These are used by the to_rgb method. Using TryFromColor will instead return None any time an out of gamut value is produced.

Variants

Preserve

Return the exact result of the transformation.

This can result in channels outside the normal range (eg. less than 0 or greater than 1).

Clip

Clip any out-of-bounds channels to their minimum or maximum value (0.0 or 1.0).

For example, -0.2 would go to 0.0 and 2.0 would go to 1.

Trait Implementations

impl Clone for YCbCrOutOfGamutMode[src]

impl Copy for YCbCrOutOfGamutMode[src]

impl Debug for YCbCrOutOfGamutMode[src]

impl Eq for YCbCrOutOfGamutMode[src]

impl PartialEq<YCbCrOutOfGamutMode> for YCbCrOutOfGamutMode[src]

impl StructuralEq for YCbCrOutOfGamutMode[src]

impl StructuralPartialEq for YCbCrOutOfGamutMode[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.