Enum swc_css_ast::AtRule [−][src]
pub enum AtRule {
Charset(CharsetRule),
Import(ImportRule),
FontFace(FontFaceRule),
Keyframes(KeyframesRule),
Media(MediaRule),
Supports(SupportsRule),
Page(PageRule),
Namespace(NamespaceRule),
Viewport(ViewportRule),
Document(DocumentRule),
Unknown(UnknownAtRule),
}
Variants
Charset(CharsetRule)
Tuple Fields
0: CharsetRule
Import(ImportRule)
Tuple Fields
0: ImportRule
FontFace(FontFaceRule)
Tuple Fields
0: FontFaceRule
Keyframes(KeyframesRule)
Tuple Fields
Media(MediaRule)
Tuple Fields
0: MediaRule
Supports(SupportsRule)
Tuple Fields
0: SupportsRule
Page(PageRule)
Tuple Fields
0: PageRule
Namespace(NamespaceRule)
Tuple Fields
Viewport(ViewportRule)
Tuple Fields
0: ViewportRule
Document(DocumentRule)
Tuple Fields
0: DocumentRule
Unknown(UnknownAtRule)
Tuple Fields
Implementations
Returns true
if self
is of variant Charset
.
Returns Some
if self
is of variant Charset
, and None
otherwise.
Returns Some
if self
is of variant Import
, and None
otherwise.
Returns true
if self
is of variant FontFace
.
Returns Some
if self
is of variant FontFace
, and None
otherwise.
Returns true
if self
is of variant Keyframes
.
Returns Some
if self
is of variant Keyframes
, and None
otherwise.
Returns Some
if self
is of variant Media
, and None
otherwise.
Returns true
if self
is of variant Supports
.
Returns Some
if self
is of variant Supports
, and None
otherwise.
Returns Some
if self
is of variant Page
, and None
otherwise.
Returns true
if self
is of variant Namespace
.
Returns Some
if self
is of variant Namespace
, and None
otherwise.
Returns true
if self
is of variant Viewport
.
Returns Some
if self
is of variant Viewport
, and None
otherwise.
Returns true
if self
is of variant Document
.
Returns Some
if self
is of variant Document
, and None
otherwise.
Returns true
if self
is of variant Unknown
.
Returns Some
if self
is of variant Unknown
, and None
otherwise.
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for AtRule
impl UnwindSafe for AtRule
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