pub enum CssWideKeyword {
Inherit,
Initial,
Unset,
Revert,
RevertLayer,
}Expand description
A keyword every property accepts, which CSS calls a CSS-wide keyword.
Variants§
Inherit
inherit: the parent’s computed value.
Initial
initial: the property’s initial value.
Unset
unset: inherit for an inherited property, initial otherwise.
Revert
revert: the value from the browser’s or the user’s stylesheet.
RevertLayer
revert-layer: the value from the previous cascade layer.
Trait Implementations§
Source§impl Clone for CssWideKeyword
impl Clone for CssWideKeyword
Source§fn clone(&self) -> CssWideKeyword
fn clone(&self) -> CssWideKeyword
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CssWideKeyword
Source§impl Debug for CssWideKeyword
impl Debug for CssWideKeyword
Source§impl Display for CssWideKeyword
impl Display for CssWideKeyword
impl Eq for CssWideKeyword
Source§impl Hash for CssWideKeyword
impl Hash for CssWideKeyword
Source§impl Ord for CssWideKeyword
impl Ord for CssWideKeyword
Source§fn cmp(&self, other: &CssWideKeyword) -> Ordering
fn cmp(&self, other: &CssWideKeyword) -> Ordering
1.21.0 (const: unstable) · 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 PartialEq for CssWideKeyword
impl PartialEq for CssWideKeyword
Source§impl PartialOrd for CssWideKeyword
impl PartialOrd for CssWideKeyword
impl StructuralPartialEq for CssWideKeyword
Auto Trait Implementations§
impl Freeze for CssWideKeyword
impl RefUnwindSafe for CssWideKeyword
impl Send for CssWideKeyword
impl Sync for CssWideKeyword
impl Unpin for CssWideKeyword
impl UnsafeUnpin for CssWideKeyword
impl UnwindSafe for CssWideKeyword
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