pub enum ParseErrorRecovery {
    DiscardList,
    IgnoreInvalidSelector,
}
Expand description

How to treat invalid selectors in a selector list.

Variants

DiscardList

Discard the entire selector list, this is the default behavior for almost all of CSS.

IgnoreInvalidSelector

Ignore invalid selectors, potentially creating an empty selector list.

This is the error recovery mode of :is() and :where()

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.

Calls U::from(self).

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

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.