[−][src]Struct tincture::Oklch
A color from the polar variant of the Oklab color space.
Fields
l: f32
Lightness. 0 is complete black, 1 is the brightest white.
c: f32
Chroma, which is similar to (but not exactly the same as) saturation. 0 is completely colorless, 1 is the most vivid color.
h: Hue
Hue.
Trait Implementations
impl Clone for Oklch
[src]
impl ColorSpace for Oklch
[src]
impl Copy for Oklch
[src]
impl Debug for Oklch
[src]
impl From<Oklab> for Oklch
[src]
impl From<Oklch> for Oklab
[src]
impl PartialEq<Oklch> for Oklch
[src]
impl PartialOrd<Oklch> for Oklch
[src]
pub fn partial_cmp(&self, other: &Oklch) -> Option<Ordering>
[src]
pub fn lt(&self, other: &Oklch) -> bool
[src]
pub fn le(&self, other: &Oklch) -> bool
[src]
pub fn gt(&self, other: &Oklch) -> bool
[src]
pub fn ge(&self, other: &Oklch) -> bool
[src]
impl StructuralPartialEq for Oklch
[src]
Auto Trait Implementations
impl RefUnwindSafe for Oklch
[src]
impl Send for Oklch
[src]
impl Sync for Oklch
[src]
impl Unpin for Oklch
[src]
impl UnwindSafe for Oklch
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,