[][src]Struct deltae::XyzValue

pub struct XyzValue {
    pub x: f32,
    pub y: f32,
    pub z: f32,
}

XYZ

ValueColorRange
XRed0 <---> 1
YGreen0 <---> 1
ZBlue0 <---> 1

Fields

x: f32

X Value

y: f32

Y Value

z: f32

Z Value

Methods

impl XyzValue[src]

pub fn new(x: f32, y: f32, z: f32) -> Result<XyzValue, ValueError>[src]

Returns a result of an XyzValue from 3 f32s. Will return Err() if the values are out of range

Trait Implementations

impl Round for XyzValue[src]

impl Validate for XyzValue[src]

impl From<XyzValue> for LabValue[src]

impl<'_> From<&'_ XyzValue> for LabValue[src]

impl From<XyzValue> for LchValue[src]

impl<'_> From<&'_ XyzValue> for LchValue[src]

impl From<LabValue> for XyzValue[src]

impl<'_> From<&'_ XyzValue> for XyzValue[src]

impl<'_> From<&'_ LabValue> for XyzValue[src]

impl From<LchValue> for XyzValue[src]

impl<'_> From<&'_ LchValue> for XyzValue[src]

impl Default for XyzValue[src]

impl Clone for XyzValue[src]

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

Performs copy-assignment from source. Read more

impl<T: Delta + Copy> PartialEq<T> for XyzValue where
    XyzValue: From<T>, 
[src]

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

This method tests for !=.

impl Copy for XyzValue[src]

impl Display for XyzValue[src]

impl Debug for XyzValue[src]

impl FromStr for XyzValue[src]

type Err = ValueError

The associated error which can be returned from parsing.

impl<'_> TryFrom<&'_ [f32; 3]> for XyzValue[src]

type Error = ValueError

The type returned in the event of a conversion error.

impl TryFrom<(f32, f32, f32)> for XyzValue[src]

type Error = ValueError

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ (f32, f32, f32)> for XyzValue[src]

type Error = ValueError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl Send for XyzValue

impl Unpin for XyzValue

impl Sync for XyzValue

impl UnwindSafe for XyzValue

impl RefUnwindSafe for XyzValue

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]