pub enum AllStyleValue {
Initial(Ident),
Inherit(Ident),
Unset(Ident),
Revert(Ident),
RevertLayer(Ident),
}Expand description
Represents the style value for all as defined in css-cascade-6.
The all CSS property is a shorthand for all CSS properties, except for direction and unicode-bidi. It accepts only the keywords for explicit defaulting (such as initial and inherit), since they are the only values supported on all CSS properties.
The grammar is defined as:
initial | inherit | unset | revert | revert-layerVariants§
Trait Implementations§
Source§impl Clone for AllStyleValue
impl Clone for AllStyleValue
Source§fn clone(&self) -> AllStyleValue
fn clone(&self) -> AllStyleValue
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 AllStyleValue
impl Debug for AllStyleValue
Source§impl Hash for AllStyleValue
impl Hash for AllStyleValue
Source§impl Ord for AllStyleValue
impl Ord for AllStyleValue
Source§fn cmp(&self, other: &AllStyleValue) -> Ordering
fn cmp(&self, other: &AllStyleValue) -> 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 AllStyleValue
impl<'a> Parse<'a> for AllStyleValue
Source§impl PartialEq for AllStyleValue
impl PartialEq for AllStyleValue
Source§impl PartialOrd for AllStyleValue
impl PartialOrd for AllStyleValue
Source§impl<'a> Peek<'a> for AllStyleValue
impl<'a> Peek<'a> for AllStyleValue
Source§impl ToCursors for AllStyleValue
impl ToCursors for AllStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for AllStyleValue
impl StructuralPartialEq for AllStyleValue
Auto Trait Implementations§
impl Freeze for AllStyleValue
impl RefUnwindSafe for AllStyleValue
impl Send for AllStyleValue
impl Sync for AllStyleValue
impl Unpin for AllStyleValue
impl UnwindSafe for AllStyleValue
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