DEMethod in deltae - Rust
Description: The most common DeltaE methods
Keywords: rust, rustlang, rust-lang, DEMethod

# Enum deltae::DEMethod
[−][src]

    pub enum DEMethod {
        DE2000,
        DECMC(f32, f32),
        DE1994G,
        DE1994T,
        DE1976,
    }

Expand description

The most common DeltaE methods

## Variants

`DE2000`

The default DeltaE method

`DECMC(f32, f32)`

An implementation of DeltaE with separate tolerances for Lightness and Chroma

### Tuple Fields of DECMC

`0: f32`

Lightness tolerance

`1: f32`

Chroma tolerance

`DE1994G`

CIE94 DeltaE implementation, weighted with a tolerance for graphics

`DE1994T`

CIE94 DeltaE implementation, weighted with a tolerance for textiles

`DE1976`

The original DeltaE implementation, a basic euclidian distance formula

## Trait Implementations

[src]

### impl Clone for DEMethod

[src]

#### fn clone(&self) -> DEMethod

Returns a copy of the value. Read more

1.0.0[src]

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

Performs copy-assignment from `source`. Read more

[src]

### impl Debug for DEMethod

[src]

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

Formats the value using the given formatter. Read more

[src]

### impl Default for DEMethod

[src]

#### fn default() -> DEMethod

Returns the “default value” for a type. Read more

[src]

### impl Display for DEMethod

[src]

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

Formats the value using the given formatter. Read more

[src]

### impl FromStr for DEMethod

#### type Err = Error

The associated error which can be returned from parsing.

[src]

#### fn from_str(s: &str) -> Result<DEMethod, Self::Err>

Parses a string `s` to return a value of this type. Read more

[src]

### impl PartialEq<DEMethod> for DEMethod

[src]

#### fn eq(&self, other: &DEMethod) -> bool

This method tests for `self` and `other` values to be equal, and is used by `==`. Read more

[src]

#### fn ne(&self, other: &DEMethod) -> bool

This method tests for `!=`.

[src]

### impl Copy for DEMethod

[src]

### impl Eq for DEMethod

[src]

### impl StructuralPartialEq for DEMethod

## Auto Trait Implementations

### impl RefUnwindSafe for DEMethod

### impl Send for DEMethod

### impl Sync for DEMethod

### impl Unpin for DEMethod

### impl UnwindSafe for DEMethod

## Blanket Implementations

[src]

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

[src]

#### pub fn type_id(&self) -> TypeId

Gets the `TypeId` of `self`. Read more

[src]

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

[src]

#### pub fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more

[src]

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

[src]

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

Mutably borrows from an owned value. Read more

[src]

### impl<T> From<T> for T

[src]

#### pub fn from(t: T) -> T

Performs the conversion.

[src]

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

[src]

#### pub fn into(self) -> U

Performs the conversion.

[src]

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

#### type Owned = T

The resulting type after obtaining ownership.

[src]

#### pub fn to_owned(&self) -> T

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

[src]

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

🔬 This is a nightly-only experimental API. (`toowned_clone_into`)

recently added

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

[src]

### impl<T> ToString for T where
T: Display + ?Sized,

[src]

#### pub default fn to_string(&self) -> String

Converts the given value to a `String`. Read more

[src]

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

#### type Error = Infallible

The type returned in the event of a conversion error.

[src]

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

Performs the conversion.

[src]

### 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.

[src]

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

Performs the conversion.