pub struct ContrastCurve {
pub low: f64,
pub normal: f64,
pub medium: f64,
pub high: f64,
}Expand description
A value that changes with the contrast level, usually the contrast a color needs against its background.
Fields§
§low: f64The value at contrast level -1.
normal: f64The value at contrast level 0.
medium: f64The value at contrast level 0.5.
high: f64The value at contrast level 1.
Implementations§
Trait Implementations§
Source§impl Clone for ContrastCurve
impl Clone for ContrastCurve
Source§fn clone(&self) -> ContrastCurve
fn clone(&self) -> ContrastCurve
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 ContrastCurve
Source§impl Debug for ContrastCurve
impl Debug for ContrastCurve
Source§impl PartialEq for ContrastCurve
impl PartialEq for ContrastCurve
impl StructuralPartialEq for ContrastCurve
Auto Trait Implementations§
impl Freeze for ContrastCurve
impl RefUnwindSafe for ContrastCurve
impl Send for ContrastCurve
impl Sync for ContrastCurve
impl Unpin for ContrastCurve
impl UnsafeUnpin for ContrastCurve
impl UnwindSafe for ContrastCurve
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