Struct color::Hsv [−][src]
pub struct Hsv<T = f32, S = Srgb> { pub h: Deg<T>, pub s: T, pub v: T, pub standard: PhantomData<S>, }
Fields
h: Deg<T>
s: T
v: T
standard: PhantomData<S>
Implementations
Trait Implementations
impl<T: Channel + NumCast + Num, S: TransferFunction> Color<T> for Hsv<T, S>
[src]
impl<T: Channel + NumCast + Num, S: TransferFunction> Color<T> for Hsv<T, S>
[src]fn clamp_s(self, lo: T, hi: T) -> Hsv<T, S>
[src]
Clamps the components of the color to the range (lo,hi)
.
fn clamp_c(self, lo: Hsv<T, S>, hi: Hsv<T, S>) -> Hsv<T, S>
[src]
Clamps the components of the color component-wise between lo
and hi
.
fn inverse(self) -> Hsv<T, S>
[src]
Inverts the color.
fn mix(self, other: Self, value: T) -> Self
[src]
impl<'de, T, S> Deserialize<'de> for Hsv<T, S> where
T: Deserialize<'de>,
[src]
impl<'de, T, S> Deserialize<'de> for Hsv<T, S> where
T: Deserialize<'de>,
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<T: FloatChannel> FloatColor<T> for Hsv<T>
[src]
impl<T: FloatChannel> FloatColor<T> for Hsv<T>
[src]impl<T: Clone + FloatChannel, S: TransferFunction> ToRgba for Hsv<T, S>
[src]
impl<T: Clone + FloatChannel, S: TransferFunction> ToRgba for Hsv<T, S>
[src]impl<T: Copy, S> Copy for Hsv<T, S>
[src]
impl<N: Clone + PartialEq + Eq + Num + NumCast, S> Eq for Hsv<N, S>
[src]
Auto Trait Implementations
impl<T, S> RefUnwindSafe for Hsv<T, S> where
S: RefUnwindSafe,
T: RefUnwindSafe,
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, S> Send for Hsv<T, S> where
S: Send,
T: Send,
S: Send,
T: Send,
impl<T, S> Sync for Hsv<T, S> where
S: Sync,
T: Sync,
S: Sync,
T: Sync,
impl<T, S> Unpin for Hsv<T, S> where
S: Unpin,
T: Unpin,
S: Unpin,
T: Unpin,
impl<T, S> UnwindSafe for Hsv<T, S> where
S: UnwindSafe,
T: UnwindSafe,
S: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,