[][src]Enum luminance::blending::Equation

pub enum Equation {
    Additive,
    Subtract,
    ReverseSubtract,
    Min,
    Max,
}

Blending equation. Used to state how blending factors and pixel data should be blended.

Variants

Additive

Additive represents the following blending equation:

blended = src * srcK + dst * dstK

Subtract

Subtract represents the following blending equation:

blended = src * srcK - dst * dstK

ReverseSubtract

Because subtracting is not commutative, ReverseSubtract represents the following additional blending equation:

blended = dst * dstK - src * srcK

Min

Min represents the following blending equation:

blended = min(src, dst)

Max

Max represents the following blending equation:

blended = max(src, dst)

Trait Implementations

impl Eq for Equation[src]

impl Clone for Equation[src]

impl PartialEq<Equation> for Equation[src]

impl Copy for Equation[src]

impl Debug for Equation[src]

Auto Trait Implementations

Blanket Implementations

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> From<T> for 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]