[−][src]Struct deltae::DeltaE
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: DEMethodThe mathematical method used for calculating color difference
value: f32The calculated value
Methods
impl DeltaE[src]
pub fn new<A, B>(a: A, b: B, method: DEMethod) -> DeltaE where
A: Delta,
B: Delta, [src]
A: Delta,
B: Delta,
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.
fn partial_cmp(&self, other: &Self) -> Option<Ordering>[src]
#[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(&self) -> 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]
fn eq(&self, f: &f32) -> bool[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]
T: Display + ?Sized,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,