HasImportance

Trait HasImportance 

Source
pub trait HasImportance:
    ToCss
    + Sized
    + Debug
    + Copy
    + Clone
    + Ord
    + PartialOrd
    + Eq
    + PartialEq
    + Hash {
    // Required methods
    fn validateParsedImportance<'i>(
        importance: Importance,
    ) -> Result<Self, ParseError<'i, CustomParseError<'i>>>;
    fn isImportant(&self) -> bool;
}
Expand description

A trait representing that !important can or can not be present in a property declaration

Required Methods§

Source

fn validateParsedImportance<'i>( importance: Importance, ) -> Result<Self, ParseError<'i, CustomParseError<'i>>>

Validate and convert importance, if permitted

Source

fn isImportant(&self) -> bool

Return whether this is an important declaration.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§