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§
Source§impl<T: Channel + NumCast + Num, S: TransferFunction> Color<T> for Hsv<T, S>
impl<T: Channel + NumCast + Num, S: TransferFunction> Color<T> for Hsv<T, S>
Source§impl<'de, T, S> Deserialize<'de> for Hsv<T, S>where
T: Deserialize<'de>,
impl<'de, T, S> Deserialize<'de> for Hsv<T, S>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T: FloatChannel> FloatColor<T> for Hsv<T>
impl<T: FloatChannel> FloatColor<T> for Hsv<T>
Source§impl<T: Clone + FloatChannel, S: TransferFunction> ToRgba for Hsv<T, S>
impl<T: Clone + FloatChannel, S: TransferFunction> ToRgba for Hsv<T, S>
impl<T: Copy, S> Copy for Hsv<T, S>
impl<N: Clone + PartialEq + Eq + Num + NumCast, S> Eq for Hsv<N, S>
Auto Trait Implementations§
impl<T, S> Freeze for Hsv<T, S>where
T: Freeze,
impl<T, S> RefUnwindSafe for Hsv<T, S>where
T: RefUnwindSafe,
S: RefUnwindSafe,
impl<T, S> Send for Hsv<T, S>
impl<T, S> Sync for Hsv<T, S>
impl<T, S> Unpin for Hsv<T, S>
impl<T, S> UnwindSafe for Hsv<T, S>where
T: UnwindSafe,
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more