Enum swc_css_ast::Rule
source · [−]pub enum Rule {
QualifiedRule(QualifiedRule),
Invalid(Tokens),
AtRule(AtRule),
}
Variants
QualifiedRule(QualifiedRule)
Invalid(Tokens)
AtRule(AtRule)
Implementations
Returns true
if self
is of variant QualifiedRule
.
Returns Some
if self
is a reference of variant QualifiedRule
, and None
otherwise.
Unwraps the value, yielding the content of QualifiedRule
.
Panics
Panics if the value is not QualifiedRule
, with a panic message including the content of self
.
Returns Some
if self
is of variant QualifiedRule
, and None
otherwise.
Returns true
if self
is of variant Invalid
.
Returns Some
if self
is a reference of variant Invalid
, and None
otherwise.
Returns Some
if self
is of variant Invalid
, and None
otherwise.
Returns true
if self
is of variant AtRule
.
Returns Some
if self
is a reference of variant AtRule
, and None
otherwise.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Rule
impl UnwindSafe for Rule
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more