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: CharsetRuleImport(ImportRule)Tuple Fields of Import
0: ImportRuleFontFace(FontFaceRule)Tuple Fields of FontFace
0: FontFaceRuleKeyframes(KeyframesRule)Tuple Fields of Keyframes
Media(MediaRule)Tuple Fields of Media
0: MediaRuleSupports(SupportsRule)Tuple Fields of Supports
0: SupportsRulePage(PageRule)Tuple Fields of Page
0: PageRuleNamespace(NamespaceRule)Tuple Fields of Namespace
Viewport(ViewportRule)Tuple Fields of Viewport
0: ViewportRuleDocument(DocumentRule)Tuple Fields of Document
0: DocumentRuleUnknown(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
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