pub struct ContrastConfig {
pub bg_color: Option<Color>,
pub fg_color: Option<Color>,
pub cr: f64,
pub contrast_model: ContrastModel,
pub search_direction: SearchDirection,
}Fields§
§bg_color: Option<Color>§fg_color: Option<Color>§cr: f64§contrast_model: ContrastModel§search_direction: SearchDirectionTrait Implementations§
Source§impl Clone for ContrastConfig
impl Clone for ContrastConfig
Source§fn clone(&self) -> ContrastConfig
fn clone(&self) -> ContrastConfig
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 ContrastConfig
impl Debug for ContrastConfig
Source§impl From<ContrastConfig> for ContrastInput
impl From<ContrastConfig> for ContrastInput
Source§fn from(value: ContrastConfig) -> Self
fn from(value: ContrastConfig) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ContrastConfig
impl PartialEq for ContrastConfig
impl Copy for ContrastConfig
impl StructuralPartialEq for ContrastConfig
Auto Trait Implementations§
impl Freeze for ContrastConfig
impl RefUnwindSafe for ContrastConfig
impl Send for ContrastConfig
impl Sync for ContrastConfig
impl Unpin for ContrastConfig
impl UnsafeUnpin for ContrastConfig
impl UnwindSafe for ContrastConfig
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