[][src]Struct deltae::DeltaE

pub struct DeltaE {
    pub method: DEMethod,
    pub value: f32,
}

The measured difference between two colors

There are many different methods of calculating color difference. Different methods have a specific purpose, mainly in determining the level of tolerance for describing the difference between two colors.

Fields

method: DEMethod

The mathematical method used for calculating color difference

value: f32

The calculated value

Methods

impl DeltaE[src]

pub fn new<A, B>(a: A, b: B, method: DEMethod) -> DeltaE where
    A: Delta,
    B: Delta
[src]

New DeltaE from colors and DEMethod.

Trait Implementations

impl Round for DeltaE[src]

impl PartialOrd<DeltaE> for DeltaE[src]

One should be careful when ordering DeltaE. A DE2000:1.0 value is not necessarily the same amount of color difference as a amount of color difference DE1976:1.0 value.

#[must_use] fn lt(&self, other: &Rhs) -> bool1.0.0[src]

This method tests less than (for self and other) and is used by the < operator. Read more

#[must_use] fn le(&self, other: &Rhs) -> bool1.0.0[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use] fn gt(&self, other: &Rhs) -> bool1.0.0[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

#[must_use] fn ge(&self, other: &Rhs) -> bool1.0.0[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Clone for DeltaE[src]

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

Performs copy-assignment from source. Read more

impl PartialEq<DeltaE> for DeltaE[src]

impl PartialEq<f32> for DeltaE[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl Copy for DeltaE[src]

impl Display for DeltaE[src]

impl Debug for DeltaE[src]

Auto Trait Implementations

impl Send for DeltaE

impl Unpin for DeltaE

impl Sync for DeltaE

impl UnwindSafe for DeltaE

impl RefUnwindSafe for DeltaE

Blanket Implementations

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

type Owned = T

The resulting type after obtaining ownership.

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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