[−][src]Struct deltae::XyzValue
XYZ
Value | Color | Range |
|---|---|---|
X | Red | 0 <---> 1 |
Y | Green | 0 <---> 1 |
Z | Blue | 0 <---> 1 |
Fields
x: f32X Value
y: f32Y Value
z: f32Z 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]
fn validate(self) -> Result<Self, ValueError>[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(&self) -> 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]
XyzValue: From<T>,
fn eq(&self, other: &T) -> bool[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.
fn from_str(s: &str) -> Result<XyzValue, ValueError>[src]
impl<'_> TryFrom<&'_ [f32; 3]> for XyzValue[src]
type Error = ValueError
The type returned in the event of a conversion error.
fn try_from(slice: &[f32; 3]) -> Result<XyzValue, ValueError>[src]
impl TryFrom<(f32, f32, f32)> for XyzValue[src]
type Error = ValueError
The type returned in the event of a conversion error.
fn try_from(tuple: (f32, f32, f32)) -> Result<XyzValue, ValueError>[src]
impl<'_> TryFrom<&'_ (f32, f32, f32)> for XyzValue[src]
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]
T: Display + ?Sized,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,