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

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

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Performs the conversion.

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

Performs the conversion.

Performs the conversion.

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.