[][src]Struct deltae::color::XyzValue

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

Fields

x: f32y: f32z: f32

Methods

impl XyzValue[src]

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

New XyzValue from 3 f32s

pub fn to_lab(&self) -> LabValue[src]

pub fn round_to(&self, places: i32) -> XyzValue[src]

Trait Implementations

impl Default for XyzValue[src]

impl PartialEq<XyzValue> 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 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.

fn from_str(s: &str) -> ValueResult<XyzValue>[src]

New XyzValue from &str

Auto Trait Implementations

impl Send for XyzValue

impl Sync for XyzValue

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.