pub enum ContrastPreference {
NoPreference,
More,
Less,
Custom,
}Expand description
User contrast preference for accessibility.
This is based on the prefers-contrast media query vocabulary used on the web. Runners may
supply best-effort values and leave it None when unavailable.
Variants§
Trait Implementations§
Source§impl Clone for ContrastPreference
impl Clone for ContrastPreference
Source§fn clone(&self) -> ContrastPreference
fn clone(&self) -> ContrastPreference
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 ContrastPreference
impl Debug for ContrastPreference
Source§impl PartialEq for ContrastPreference
impl PartialEq for ContrastPreference
impl Copy for ContrastPreference
impl Eq for ContrastPreference
impl StructuralPartialEq for ContrastPreference
Auto Trait Implementations§
impl Freeze for ContrastPreference
impl RefUnwindSafe for ContrastPreference
impl Send for ContrastPreference
impl Sync for ContrastPreference
impl Unpin for ContrastPreference
impl UnsafeUnpin for ContrastPreference
impl UnwindSafe for ContrastPreference
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