Struct rin::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, S> Color<T> for Hsv<T, S> where
T: Channel + NumCast + Num,
S: TransferFunction,
[src]
impl<T, S> Color<T> for Hsv<T, S> where
T: Channel + NumCast + Num,
S: TransferFunction,
[src]pub fn clamp_s(self, lo: T, hi: T) -> Hsv<T, S>
[src]
Clamps the components of the color to the range (lo,hi)
.
pub 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
.
pub fn inverse(self) -> Hsv<T, S>
[src]
Inverts the color.
pub fn mix(self, other: Hsv<T, S>, value: T) -> Hsv<T, S>
[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]pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Hsv<T, S>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<Hsv<T, S>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl<T> FloatColor<T> for Hsv<T, Srgb> where
T: FloatChannel,
[src]
impl<T> FloatColor<T> for Hsv<T, Srgb> where
T: FloatChannel,
[src]impl<T, S> Serialize for Hsv<T, S> where
T: Serialize,
[src]
impl<T, S> Serialize for Hsv<T, S> where
T: Serialize,
[src]pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl<T, S> ToRgba for Hsv<T, S> where
T: Clone + FloatChannel,
S: TransferFunction,
[src]
impl<T, S> ToRgba for Hsv<T, S> where
T: Clone + FloatChannel,
S: TransferFunction,
[src]impl<T, S> Copy for Hsv<T, S> where
T: Copy,
[src]
T: Copy,
impl<N, S> Eq for Hsv<N, S> where
N: Clone + PartialEq<N> + Eq + Num + NumCast,
[src]
N: Clone + PartialEq<N> + Eq + Num + NumCast,
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<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]pub fn erased_serialize(
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
[src]
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> Slottable for T where
T: Copy,
[src]
T: Copy,