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§
impl Freeze for ParseErrorRecovery
impl RefUnwindSafe for ParseErrorRecovery
impl Send for ParseErrorRecovery
impl Sync for ParseErrorRecovery
impl Unpin for ParseErrorRecovery
impl UnwindSafe for ParseErrorRecovery
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more