[][src]Enum lol_html::errors::SelectorError

pub enum SelectorError {
    UnexpectedToken,
    UnexpectedEnd,
    MissingAttributeName,
    EmptySelector,
    DanglingCombinator,
    UnexpectedTokenInAttribute,
    UnsupportedPseudoClassOrElement,
    NestedNegation,
    NamespacedSelector,
    InvalidClassName,
    EmptyNegation,
    UnsupportedCombinator(char),
    UnsupportedSyntax,
}

A CSS selector parsing error.

Variants

UnexpectedToken

Unexpected token in the selector.

UnexpectedEnd

Unexpected end of the selector.

MissingAttributeName

Missing attribute name in attribute selector.

EmptySelector

The selector is empty.

DanglingCombinator

Dangling combinator in selector (e.g. div >).

UnexpectedTokenInAttribute

Unexpected token in the attribute selector.

UnsupportedPseudoClassOrElement

Unsupported pseudo-class or pseudo-element in selector.

NestedNegation

Nested negation in selector.

NamespacedSelector

Selectors with explicit namespaces are not supported.

InvalidClassName

Invalid or unescaped class name in selector.

EmptyNegation

An empty negation in the selector.

UnsupportedCombinator(char)

Unsupported combinator in the selector.

UnsupportedSyntax

CSS syntax in the selector which is yet unsupported.

Trait Implementations

impl Clone for SelectorError[src]

impl Copy for SelectorError[src]

impl Debug for SelectorError[src]

impl Display for SelectorError[src]

impl Error for SelectorError[src]

impl<'_> From<ParseError<'_, SelectorParseErrorKind<'_>>> for SelectorError[src]

impl PartialEq<SelectorError> for SelectorError[src]

impl StructuralPartialEq for SelectorError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.