pub enum ParserError<'i> {
Show 13 variants UnexpectedToken(Token<'i>), EndOfInput, AtRuleInvalid(CowArcStr<'i>), AtRuleBodyInvalid, QualifiedRuleInvalid, SelectorError(SelectorError<'i>), InvalidDeclaration, InvalidPageSelector, InvalidValue, InvalidMediaQuery, InvalidNesting, UnexpectedImportRule, UnexpectedNamespaceRule,
}

Variants

UnexpectedToken(Token<'i>)

An unexpected token was encountered.

EndOfInput

The end of the input was encountered unexpectedly.

AtRuleInvalid(CowArcStr<'i>)

An @ rule was encountered that was invalid.

AtRuleBodyInvalid

The body of an ‘@’ rule was invalid.

QualifiedRuleInvalid

A qualified rule was encountered that was invalid.

SelectorError(SelectorError<'i>)

InvalidDeclaration

InvalidPageSelector

InvalidValue

InvalidMediaQuery

InvalidNesting

UnexpectedImportRule

UnexpectedNamespaceRule

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Performs the conversion.

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

The archived version of the pointer metadata for this type.

Converts some archived metadata to the pointer metadata for itself.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type for metadata in pointers and references to Self.

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.