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.

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.

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

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.

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

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.

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

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 Layer.

Returns Some if self is a reference of variant Layer, and None otherwise.

Unwraps the value, yielding the content of Layer.

Panics

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

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

Returns true if self is of variant Media.

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

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.

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

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.

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

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.

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

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.

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

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.

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

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.

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

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.

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)

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