pub struct A11yConfig {
pub check_touch_targets: bool,
pub check_heading_hierarchy: bool,
pub check_focus_indicators: bool,
pub min_contrast_normal: f32,
pub min_contrast_large: f32,
}Expand description
Configuration for accessibility checks.
Fields§
§check_touch_targets: boolCheck touch target sizes (WCAG 2.5.5)
check_heading_hierarchy: boolCheck heading hierarchy (WCAG 1.3.1)
check_focus_indicators: boolCheck focus indicators (WCAG 2.4.7)
min_contrast_normal: f32Minimum contrast ratio for normal text (WCAG 1.4.3)
min_contrast_large: f32Minimum contrast ratio for large text (WCAG 1.4.3)
Implementations§
Trait Implementations§
Source§impl Clone for A11yConfig
impl Clone for A11yConfig
Source§fn clone(&self) -> A11yConfig
fn clone(&self) -> A11yConfig
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 A11yConfig
impl Debug for A11yConfig
Auto Trait Implementations§
impl Freeze for A11yConfig
impl RefUnwindSafe for A11yConfig
impl Send for A11yConfig
impl Sync for A11yConfig
impl Unpin for A11yConfig
impl UnwindSafe for A11yConfig
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