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
Tuple Fields of Charset
0: CharsetRule
Tuple Fields of Import
0: ImportRule
Tuple Fields of FontFace
0: FontFaceRule
Tuple Fields of Keyframes
Tuple Fields of Media
0: MediaRule
Tuple Fields of Supports
0: SupportsRule
Tuple Fields of Page
0: PageRule
Tuple Fields of Namespace
Tuple Fields of Viewport
0: ViewportRule
Tuple Fields of Document
0: DocumentRule
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