pub enum SelectorError<'i> {
Show 19 variants BadValueInAttr(Token<'i>), ClassNeedsIdent(Token<'i>), DanglingCombinator, EmptySelector, ExpectedBarInAttr(Token<'i>), ExpectedNamespace(CowArcStr<'i>), ExplicitNamespaceUnexpectedToken(Token<'i>), InvalidPseudoClassAfterPseudoElement, InvalidPseudoClassAfterWebKitScrollbar, InvalidPseudoClassBeforeWebKitScrollbar, InvalidQualNameInAttr(Token<'i>), InvalidState, MissingNestingPrefix, MissingNestingSelector, NoQualifiedNameInAttributeSelector(Token<'i>), PseudoElementExpectedIdent(Token<'i>), UnexpectedIdent(CowArcStr<'i>), UnexpectedTokenInAttributeSelector(Token<'i>), UnsupportedPseudoClassOrElement(CowArcStr<'i>),
}
Expand description

A selector parsing error.

Variants

BadValueInAttr(Token<'i>)

An unexpected token was found in an attribute selector.

ClassNeedsIdent(Token<'i>)

An unexpected token was found in a class selector.

DanglingCombinator

A dangling combinator was found.

EmptySelector

An empty selector.

ExpectedBarInAttr(Token<'i>)

A | was expected in an attribute selector.

ExpectedNamespace(CowArcStr<'i>)

A namespace was expected.

ExplicitNamespaceUnexpectedToken(Token<'i>)

An unexpected token was encountered in a namespace.

InvalidPseudoClassAfterPseudoElement

An invalid pseudo class was encountered after a pseudo element.

InvalidPseudoClassAfterWebKitScrollbar

An invalid pseudo class was encountered after a -webkit-scrollbar pseudo element.

InvalidPseudoClassBeforeWebKitScrollbar

A -webkit-scrollbar state was encountered before a -webkit-scrollbar pseudo element.

InvalidQualNameInAttr(Token<'i>)

Invalid qualified name in attribute selector.

InvalidState

The current token is not allowed in this state.

MissingNestingPrefix

The selector is required to have the & nesting selector at the start.

MissingNestingSelector

The selector is missing a & nesting selector.

NoQualifiedNameInAttributeSelector(Token<'i>)

No qualified name in attribute selector.

PseudoElementExpectedIdent(Token<'i>)

An Invalid token was encountered in a pseudo element.

UnexpectedIdent(CowArcStr<'i>)

An unexpected identifier was encountered.

UnexpectedTokenInAttributeSelector(Token<'i>)

An unexpected token was encountered inside an attribute selector.

UnsupportedPseudoClassOrElement(CowArcStr<'i>)

An unsupported pseudo class or pseudo element was encountered.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

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

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

Deserializes using the given deserializer

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.

Converts the given value to a String. 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.