Struct image_buffer::color::Lab [] [src]

#[repr(C)]
pub struct Lab<T: Primitive>(_);

CIE L*a*b*.

Methods

impl<T: Primitive> Lab<T>
[src]

Trait Implementations

impl<T: PartialEq + Primitive> PartialEq for Lab<T>
[src]

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

This method tests for !=.

impl<T: Eq + Primitive> Eq for Lab<T>
[src]

impl<T: Clone + Primitive> Clone for Lab<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Debug + Primitive> Debug for Lab<T>
[src]

Formats the value using the given formatter.

impl<T: Copy + Primitive> Copy for Lab<T>
[src]

impl<T: Hash + Primitive> Hash for Lab<T>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<T: Primitive> AsRef<[T; 3]> for Lab<T>
[src]

Performs the conversion.

impl<T: Primitive> AsMut<[T; 3]> for Lab<T>
[src]

Performs the conversion.

impl<T: Primitive> Color for Lab<T>
[src]

The underlying subpixel type.

Returns the number of channels of this pixel type.

Returns the components as a slice.

Returns the components as a mutable slice

Construct a pixel from the 4 channels a, b, c and d. If the pixel does not contain 4 channels the extra are ignored. Read more

Returns a view into a slice. Read more

Returns mutable view into a mutable slice. Read more

Apply the function f to each channel except the alpha channel. Apply the function g to the alpha channel. Works in-place. Read more

Returns a string that can help to interprete the meaning each channel See gimp babl. Read more

Apply the function f to each channel of this pixel.

Apply the function f to each channel of this pixel.

Apply the function f to each channel except the alpha channel. Apply the function g to the alpha channel. Read more

Apply the function f to each channel of this pixel and other pairwise. Read more

Apply the function f to each channel of this pixel and other pairwise. Works in-place. Read more

impl<T: Primitive> Index<usize> for Lab<T>
[src]

The returned type after indexing

The method for the indexing (container[index]) operation

impl<T: Primitive> IndexMut<usize> for Lab<T>
[src]

The method for the mutable indexing (container[index]) operation

impl<T: Primitive, V: ColorMathOps<Lab<T>>> Add<V> for Lab<T>
[src]

The resulting type after applying the + operator

The method for the + operator

impl<T: Primitive> AddAssign for Lab<T>
[src]

The method for the += operator

impl<T: Primitive, V: ColorMathOps<Lab<T>>> Sub<V> for Lab<T>
[src]

The resulting type after applying the - operator

The method for the - operator

impl<T: Primitive> SubAssign for Lab<T>
[src]

The method for the -= operator

impl<T: Primitive, V: ColorMathOps<Lab<T>>> Div<V> for Lab<T>
[src]

The resulting type after applying the / operator

The method for the / operator

impl<T: Primitive> DivAssign for Lab<T>
[src]

The method for the /= operator

impl<T: Primitive, V: ColorMathOps<Lab<T>>> Mul<V> for Lab<T>
[src]

The resulting type after applying the * operator

The method for the * operator

impl<T: Primitive> MulAssign for Lab<T>
[src]

The method for the *= operator

impl<T: Primitive> From<Alpha4<Lab<T>>> for Lab<T>
[src]

Performs the conversion.