[−][src]Struct deltae::LabValue
CIEL*a*b*
Value | Color | Range |
|---|---|---|
L* | Light <---> Dark | 0 <---> 100 |
a* | Green <---> Magenta | -128 <---> 128 |
b* | Blue <---> Yellow | -128 <---> 128 |
Fields
l: f32Lightness
a: f32Green - Magenta
b: f32Blue - Yellow
Methods
impl LabValue[src]
pub fn new(l: f32, a: f32, b: f32) -> Result<LabValue, ValueError>[src]
Returns a result of a LabValue from 3 f32s.
Will return Err() if the values are out of range
Trait Implementations
impl Round for LabValue[src]
impl Validate for LabValue[src]
fn validate(self) -> Result<Self, ValueError>[src]
impl From<LchValue> for LabValue[src]
impl<'_> From<&'_ LchValue> for LabValue[src]
impl<'_> From<&'_ LabValue> for LabValue[src]
impl From<XyzValue> for LabValue[src]
impl<'_> From<&'_ XyzValue> for LabValue[src]
impl From<LabValue> for LchValue[src]
impl<'_> From<&'_ LabValue> for LchValue[src]
impl From<LabValue> for XyzValue[src]
impl<'_> From<&'_ LabValue> for XyzValue[src]
impl Default for LabValue[src]
impl Clone for LabValue[src]
fn clone(&self) -> LabValue[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 LabValue where
LabValue: From<T>, [src]
LabValue: 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 LabValue[src]
impl Display for LabValue[src]
impl Debug for LabValue[src]
impl FromStr for LabValue[src]
type Err = ValueError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<LabValue, ValueError>[src]
impl<'_> TryFrom<&'_ [f32; 3]> for LabValue[src]
type Error = ValueError
The type returned in the event of a conversion error.
fn try_from(slice: &[f32; 3]) -> Result<LabValue, ValueError>[src]
impl TryFrom<(f32, f32, f32)> for LabValue[src]
type Error = ValueError
The type returned in the event of a conversion error.
fn try_from(tuple: (f32, f32, f32)) -> Result<LabValue, ValueError>[src]
impl<'_> TryFrom<&'_ (f32, f32, f32)> for LabValue[src]
Auto Trait Implementations
impl Send for LabValue
impl Unpin for LabValue
impl Sync for LabValue
impl UnwindSafe for LabValue
impl RefUnwindSafe for LabValue
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,