pub enum WcagLevel {
Fail,
AALarge,
AA,
AAA,
}
Expand description
WCAG 2.1 color contrast levels
Variants§
Fail
Fails all WCAG requirements (contrast < 3:1)
AALarge
Meets WCAG AA Large requirements (contrast >= 3:1)
AA
Meets WCAG AA requirements (contrast >= 4.5:1)
AAA
Meets WCAG AAA requirements (contrast >= 7:1)
Implementations§
Trait Implementations§
impl Copy for WcagLevel
impl Eq for WcagLevel
impl StructuralPartialEq for WcagLevel
Auto Trait Implementations§
impl Freeze for WcagLevel
impl RefUnwindSafe for WcagLevel
impl Send for WcagLevel
impl Sync for WcagLevel
impl Unpin for WcagLevel
impl UnwindSafe for WcagLevel
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