pub trait Hue: Sized {
// Required methods
fn with_hue(&self, hue: f32) -> Self;
fn hue(&self) -> f32;
fn set_hue(&mut self, hue: f32);
// Provided method
fn rotate_hue(&self, degrees: f32) -> Self { ... }
}
Expand description
Trait for manipulating the hue of a color.
Required Methods§
Provided Methods§
Sourcefn rotate_hue(&self, degrees: f32) -> Self
fn rotate_hue(&self, degrees: f32) -> Self
Return a new version of this color with the hue channel rotated by the given degrees.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.