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

0: KeyframesRule
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

0: NamespaceRule
Viewport(ViewportRule)

Tuple Fields of Viewport

0: ViewportRule
Document(DocumentRule)

Tuple Fields of Document

0: DocumentRule
Unknown(UnknownAtRule)

Tuple Fields of Unknown

0: UnknownAtRule

Implementations

Returns true if self is of variant Charset.

Unwraps the value, yielding the content of Charset.

Panics

Panics if the value is not Charset, with a panic message including the content of self.

Returns Some if self is of variant Charset, and None otherwise.

Returns true if self is of variant Import.

Unwraps the value, yielding the content of Import.

Panics

Panics if the value is not Import, with a panic message including the content of self.

Returns Some if self is of variant Import, and None otherwise.

Returns true if self is of variant FontFace.

Unwraps the value, yielding the content of FontFace.

Panics

Panics if the value is not FontFace, with a panic message including the content of self.

Returns Some if self is of variant FontFace, and None otherwise.

Returns true if self is of variant Keyframes.

Unwraps the value, yielding the content of Keyframes.

Panics

Panics if the value is not Keyframes, with a panic message including the content of self.

Returns Some if self is of variant Keyframes, and None otherwise.

Returns true if self is of variant Media.

Unwraps the value, yielding the content of Media.

Panics

Panics if the value is not Media, with a panic message including the content of self.

Returns Some if self is of variant Media, and None otherwise.

Returns true if self is of variant Supports.

Unwraps the value, yielding the content of Supports.

Panics

Panics if the value is not Supports, with a panic message including the content of self.

Returns Some if self is of variant Supports, and None otherwise.

Returns true if self is of variant Page.

Unwraps the value, yielding the content of Page.

Panics

Panics if the value is not Page, with a panic message including the content of self.

Returns Some if self is of variant Page, and None otherwise.

Returns true if self is of variant Namespace.

Unwraps the value, yielding the content of Namespace.

Panics

Panics if the value is not Namespace, with a panic message including the content of self.

Returns Some if self is of variant Namespace, and None otherwise.

Returns true if self is of variant Viewport.

Unwraps the value, yielding the content of Viewport.

Panics

Panics if the value is not Viewport, with a panic message including the content of self.

Returns Some if self is of variant Viewport, and None otherwise.

Returns true if self is of variant Document.

Unwraps the value, yielding the content of Document.

Panics

Panics if the value is not Document, with a panic message including the content of self.

Returns Some if self is of variant Document, and None otherwise.

Returns true if self is of variant Unknown.

Unwraps the value, yielding the content of Unknown.

Panics

Panics if the value is not Unknown, with a panic message including the content of self.

Returns Some if self is of variant Unknown, and None otherwise.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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.

Performs the conversion.

Performs the conversion.

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Get span of self.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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