Struct yunter::Xyz [] [src]

pub struct Xyz<T: Float = f32> {
    pub data: [T; 3],
}

Fields

Methods

impl<T: Float> Xyz<T>
[src]

[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl<T: Debug + Float> Debug for Xyz<T>
[src]

[src]

Formats the value using the given formatter. Read more

impl<T: Copy + Float> Copy for Xyz<T>
[src]

impl<T: Clone + Float> Clone for Xyz<T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: PartialOrd + Float> PartialOrd for Xyz<T>
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

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

[src]

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

[src]

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

[src]

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

impl<T: PartialEq + Float> PartialEq for Xyz<T>
[src]

[src]

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

[src]

This method tests for !=.

impl<T: Hash + Float> Hash for Xyz<T>
[src]

[src]

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

1.3.0
[src]

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

impl<T: Default + Float> Default for Xyz<T>
[src]

[src]

Returns the "default value" for a type. Read more

impl<T: Float> From<Lab<T>> for Xyz<T>
[src]

[src]

Performs the conversion.

impl<T: Float> From<Rgb> for Xyz<T>
[src]

[src]

Performs the conversion.

impl<T: Float> From<Xyz<T>> for Lab<T>
[src]

[src]

Performs the conversion.

impl<T: Float> From<Xyz<T>> for Rgb
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl<T> Send for Xyz<T> where
    T: Send

impl<T> Sync for Xyz<T> where
    T: Sync