#[repr(C)]pub struct HighContrastConfig {
pub grayscale: bool,
pub invert_style: SkHighContrastConfig_InvertStyle,
pub contrast: f32,
}Fields§
§grayscale: bool§invert_style: SkHighContrastConfig_InvertStyle§contrast: f32Implementations§
Source§impl HighContrastConfig
impl HighContrastConfig
pub fn new( grayscale: bool, invert_style: SkHighContrastConfig_InvertStyle, contrast: f32, ) -> HighContrastConfig
pub fn is_valid(&self) -> bool
Trait Implementations§
Source§impl Clone for HighContrastConfig
impl Clone for HighContrastConfig
Source§fn clone(&self) -> HighContrastConfig
fn clone(&self) -> HighContrastConfig
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 moreSource§impl Debug for HighContrastConfig
impl Debug for HighContrastConfig
Source§impl Default for HighContrastConfig
impl Default for HighContrastConfig
Source§fn default() -> HighContrastConfig
fn default() -> HighContrastConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for HighContrastConfig
impl PartialEq for HighContrastConfig
Source§fn eq(&self, other: &HighContrastConfig) -> bool
fn eq(&self, other: &HighContrastConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HighContrastConfig
Auto Trait Implementations§
impl Freeze for HighContrastConfig
impl RefUnwindSafe for HighContrastConfig
impl Send for HighContrastConfig
impl Sync for HighContrastConfig
impl Unpin for HighContrastConfig
impl UnsafeUnpin for HighContrastConfig
impl UnwindSafe for HighContrastConfig
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