pub enum AtRule {
Show 17 variants Charset(CharsetRule), Import(ImportRule), FontFace(FontFaceRule), Keyframes(KeyframesRule), Layer(LayerRule), Media(MediaRule), Supports(SupportsRule), Page(PageRule), PageMargin(PageMarginRule), Namespace(NamespaceRule), Nest(NestRule), Viewport(ViewportRule), Document(DocumentRule), ColorProfile(ColorProfileRule), CounterStyle(CounterStyleRule), Property(PropertyRule), Unknown(UnknownAtRule),
}

Variants

Charset(CharsetRule)

Import(ImportRule)

FontFace(FontFaceRule)

Keyframes(KeyframesRule)

Layer(LayerRule)

Media(MediaRule)

Supports(SupportsRule)

Page(PageRule)

PageMargin(PageMarginRule)

Namespace(NamespaceRule)

Nest(NestRule)

Viewport(ViewportRule)

Document(DocumentRule)

ColorProfile(ColorProfileRule)

CounterStyle(CounterStyleRule)

Property(PropertyRule)

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

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

Unwraps the value, yielding the content of PageMargin.

Panics

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

Returns Some if self is of variant PageMargin, 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 Nest.

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

Unwraps the value, yielding the content of Nest.

Panics

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

Returns Some if self is of variant Nest, 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 ColorProfile.

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

Unwraps the value, yielding the content of ColorProfile.

Panics

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

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

Returns true if self is of variant CounterStyle.

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

Unwraps the value, yielding the content of CounterStyle.

Panics

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

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

Returns true if self is of variant Property.

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

Unwraps the value, yielding the content of Property.

Panics

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

Returns Some if self is of variant Property, 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.

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

Returns the argument unchanged.

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

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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