Enum swc_css_ast::Rule [−][src]
pub enum Rule {
QualifiedRule(QualifiedRule),
AtRule(AtRule),
Invalid(Tokens),
}
Variants
QualifiedRule(QualifiedRule)
Tuple Fields
AtRule(AtRule)
Tuple Fields
0: AtRule
Invalid(Tokens)
Tuple Fields
0: Tokens
Implementations
Returns true
if self
is of variant QualifiedRule
.
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 AtRule
.
Returns Some
if self
is of variant AtRule
, and None
otherwise.
Returns true
if self
is of variant Invalid
.
Trait Implementations
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