pub struct HueSaturation {
pub hue: f32,
pub saturation: f32,
}Expand description
A color as a ColorWheel holds it, without brightness.
Fields§
§hue: f32Degrees, from 0 up to 360. Red is 0.
saturation: f32From 0 (gray, at the center of the wheel) to 1 (pure, at its edge).
Implementations§
Trait Implementations§
Source§impl Clone for HueSaturation
impl Clone for HueSaturation
Source§fn clone(&self) -> HueSaturation
fn clone(&self) -> HueSaturation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HueSaturation
Source§impl Debug for HueSaturation
impl Debug for HueSaturation
Source§impl Default for HueSaturation
impl Default for HueSaturation
Source§fn default() -> HueSaturation
fn default() -> HueSaturation
Returns the “default value” for a type. Read more
Source§impl PartialEq for HueSaturation
impl PartialEq for HueSaturation
impl StructuralPartialEq for HueSaturation
Auto Trait Implementations§
impl Freeze for HueSaturation
impl RefUnwindSafe for HueSaturation
impl Send for HueSaturation
impl Sync for HueSaturation
impl Unpin for HueSaturation
impl UnsafeUnpin for HueSaturation
impl UnwindSafe for HueSaturation
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