pub enum ForcedColorAdjustStyleValue {
Auto(Ident),
None(Ident),
PreserveParentColor(Ident),
}Expand description
Represents the style value for forced-color-adjust as defined in css-color-adjust-1.
The forced-colors CSS @media rule detects when a user has chosen to use a forced colors mode, also known as high-contrast mode, and the forced-color-adjust CSS property sets whether forced colors apply to an element.
The grammar is defined as:
auto | none | preserve-parent-colorVariants§
Trait Implementations§
Source§impl Clone for ForcedColorAdjustStyleValue
impl Clone for ForcedColorAdjustStyleValue
Source§fn clone(&self) -> ForcedColorAdjustStyleValue
fn clone(&self) -> ForcedColorAdjustStyleValue
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 ForcedColorAdjustStyleValue
impl Debug for ForcedColorAdjustStyleValue
Source§impl Hash for ForcedColorAdjustStyleValue
impl Hash for ForcedColorAdjustStyleValue
Source§impl Ord for ForcedColorAdjustStyleValue
impl Ord for ForcedColorAdjustStyleValue
Source§fn cmp(&self, other: &ForcedColorAdjustStyleValue) -> Ordering
fn cmp(&self, other: &ForcedColorAdjustStyleValue) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> Parse<'a> for ForcedColorAdjustStyleValue
impl<'a> Parse<'a> for ForcedColorAdjustStyleValue
Source§impl PartialOrd for ForcedColorAdjustStyleValue
impl PartialOrd for ForcedColorAdjustStyleValue
Source§impl<'a> Peek<'a> for ForcedColorAdjustStyleValue
impl<'a> Peek<'a> for ForcedColorAdjustStyleValue
Source§impl ToCursors for ForcedColorAdjustStyleValue
impl ToCursors for ForcedColorAdjustStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for ForcedColorAdjustStyleValue
impl StructuralPartialEq for ForcedColorAdjustStyleValue
Auto Trait Implementations§
impl Freeze for ForcedColorAdjustStyleValue
impl RefUnwindSafe for ForcedColorAdjustStyleValue
impl Send for ForcedColorAdjustStyleValue
impl Sync for ForcedColorAdjustStyleValue
impl Unpin for ForcedColorAdjustStyleValue
impl UnwindSafe for ForcedColorAdjustStyleValue
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