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 of Charset
0: CharsetRule
Import(ImportRule)
Tuple Fields of Import
0: ImportRule
FontFace(FontFaceRule)
Tuple Fields of FontFace
0: FontFaceRule
Keyframes(KeyframesRule)
Tuple Fields of Keyframes
Media(MediaRule)
Tuple Fields of Media
0: MediaRule
Supports(SupportsRule)
Tuple Fields of Supports
0: SupportsRule
Page(PageRule)
Tuple Fields of Page
0: PageRule
Namespace(NamespaceRule)
Tuple Fields of Namespace
Viewport(ViewportRule)
Tuple Fields of Viewport
0: ViewportRule
Document(DocumentRule)
Tuple Fields of Document
0: DocumentRule
Unknown(UnknownAtRule)
Tuple Fields of Unknown
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
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. 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