pub enum Importance {
Normal,
Important,
}Expand description
A declaration importance.
Variants§
Normal
Indicates a declaration without !important.
Important
Indicates a declaration with !important.
Implementations§
Trait Implementations§
Source§impl Clone for Importance
impl Clone for Importance
Source§fn clone(&self) -> Importance
fn clone(&self) -> Importance
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 Importance
impl Debug for Importance
Source§impl Default for Importance
impl Default for Importance
Source§impl HasImportance for Importance
impl HasImportance for Importance
Source§fn isImportant(&self) -> bool
fn isImportant(&self) -> bool
Return whether this is an important declaration.
Source§fn validateParsedImportance<'i>(
importance: Importance,
) -> Result<Self, ParseError<'i, CustomParseError<'i>>>
fn validateParsedImportance<'i>( importance: Importance, ) -> Result<Self, ParseError<'i, CustomParseError<'i>>>
Validate and convert importance, if permitted
Source§impl HasPropertyDeclarations<Importance> for PageAtRule
impl HasPropertyDeclarations<Importance> for PageAtRule
fn property_declarations(&self) -> &PropertyDeclarations<Importance>
fn property_declarations_mut(&mut self) -> &mut PropertyDeclarations<Importance>
fn property_declarations_slice(&self) -> &[PropertyDeclaration<Importance>]
fn property_declarations_vec(&self) -> &Vec<PropertyDeclaration<Importance>>
fn property_declarations_vec_mut( &mut self, ) -> &mut Vec<PropertyDeclaration<Importance>>
Source§impl HasPropertyDeclarations<Importance> for StyleRule
impl HasPropertyDeclarations<Importance> for StyleRule
fn property_declarations(&self) -> &PropertyDeclarations<Importance>
fn property_declarations_mut(&mut self) -> &mut PropertyDeclarations<Importance>
fn property_declarations_slice(&self) -> &[PropertyDeclaration<Importance>]
fn property_declarations_vec(&self) -> &Vec<PropertyDeclaration<Importance>>
fn property_declarations_vec_mut( &mut self, ) -> &mut Vec<PropertyDeclaration<Importance>>
Source§impl Hash for Importance
impl Hash for Importance
Source§impl Ord for Importance
impl Ord for Importance
Source§fn cmp(&self, other: &Importance) -> Ordering
fn cmp(&self, other: &Importance) -> 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 PartialEq for Importance
impl PartialEq for Importance
Source§impl PartialOrd for Importance
impl PartialOrd for Importance
Source§impl ToCss for Importance
impl ToCss for Importance
impl Copy for Importance
impl Eq for Importance
impl StructuralPartialEq for Importance
Auto Trait Implementations§
impl Freeze for Importance
impl RefUnwindSafe for Importance
impl Send for Importance
impl Sync for Importance
impl Unpin for Importance
impl UnwindSafe for Importance
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