pub struct ContrastOptions {
pub level: Option<String>,
pub min: Option<f64>,
pub large: Option<bool>,
pub report_only: bool,
}Expand description
How a contrast assertion is read: an explicit min wins; otherwise level (default AA) with
large (default: decided from the element’s font size and weight).
Fields§
§level: Option<String>§min: Option<f64>§large: Option<bool>§report_only: boolReport the ratio without failing when it is below the minimum.
Trait Implementations§
Source§impl Clone for ContrastOptions
impl Clone for ContrastOptions
Source§impl Debug for ContrastOptions
impl Debug for ContrastOptions
Auto Trait Implementations§
impl Freeze for ContrastOptions
impl RefUnwindSafe for ContrastOptions
impl Send for ContrastOptions
impl Sync for ContrastOptions
impl Unpin for ContrastOptions
impl UnsafeUnpin for ContrastOptions
impl UnwindSafe for ContrastOptions
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