pub struct ValueGradient {
pub saturation: f32,
pub lightness: f32,
}Expand description
Every byte value gets a unique colour from a fixed HSL hue wheel. Saturation and lightness are tuned per theme/mode so the resulting colours stay readable under the view’s fixed text contrast rules.
Fields§
§saturation: f32§lightness: f32Implementations§
Source§impl ValueGradient
impl ValueGradient
Trait Implementations§
Source§impl Clone for ValueGradient
impl Clone for ValueGradient
Source§fn clone(&self) -> ValueGradient
fn clone(&self) -> ValueGradient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ValueGradient
impl Debug for ValueGradient
impl Copy for ValueGradient
Auto Trait Implementations§
impl Freeze for ValueGradient
impl RefUnwindSafe for ValueGradient
impl Send for ValueGradient
impl Sync for ValueGradient
impl Unpin for ValueGradient
impl UnsafeUnpin for ValueGradient
impl UnwindSafe for ValueGradient
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