Enum swc_css_ast::AtRule
source · [−]pub enum AtRule {
Charset(CharsetRule),
Import(ImportRule),
FontFace(FontFaceRule),
Keyframes(KeyframesRule),
Layer(LayerRule),
Media(MediaRule),
Supports(SupportsRule),
Page(PageRule),
Namespace(NamespaceRule),
Viewport(ViewportRule),
Document(DocumentRule),
Unknown(UnknownAtRule),
}
Variants
Charset(CharsetRule)
Import(ImportRule)
FontFace(FontFaceRule)
Keyframes(KeyframesRule)
Layer(LayerRule)
Media(MediaRule)
Supports(SupportsRule)
Page(PageRule)
Namespace(NamespaceRule)
Viewport(ViewportRule)
Document(DocumentRule)
Unknown(UnknownAtRule)
Implementations
Returns true
if self
is of variant Charset
.
Returns Some
if self
is a reference of variant Charset
, and None
otherwise.
Returns Some
if self
is of variant Charset
, and None
otherwise.
Returns Some
if self
is a reference of variant Import
, 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 a reference of variant FontFace
, and None
otherwise.
Returns Some
if self
is of variant FontFace
, and None
otherwise.
Returns true
if self
is of variant Keyframes
.
Returns Some
if self
is a reference of variant Keyframes
, and None
otherwise.
Returns Some
if self
is of variant Keyframes
, and None
otherwise.
Returns Some
if self
is a reference of variant Layer
, and None
otherwise.
Returns Some
if self
is of variant Layer
, and None
otherwise.
Returns Some
if self
is a reference of variant Media
, 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 a reference of variant Supports
, and None
otherwise.
Returns Some
if self
is of variant Supports
, and None
otherwise.
Returns Some
if self
is a reference of variant Page
, 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 a reference of variant Namespace
, and None
otherwise.
Returns Some
if self
is of variant Namespace
, and None
otherwise.
Returns true
if self
is of variant Viewport
.
Returns Some
if self
is a reference of variant Viewport
, and None
otherwise.
Returns Some
if self
is of variant Viewport
, and None
otherwise.
Returns true
if self
is of variant Document
.
Returns Some
if self
is a reference of variant Document
, and None
otherwise.
Returns Some
if self
is of variant Document
, and None
otherwise.
Returns true
if self
is of variant Unknown
.
Returns Some
if self
is a reference of variant Unknown
, and None
otherwise.
Returns Some
if self
is of variant Unknown
, and None
otherwise.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
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