Enum lol_html::errors::SelectorError
source · pub enum SelectorError {
Show 13 variants
UnexpectedToken,
UnexpectedEnd,
MissingAttributeName,
EmptySelector,
DanglingCombinator,
UnexpectedTokenInAttribute,
UnsupportedPseudoClassOrElement,
NestedNegation,
NamespacedSelector,
InvalidClassName,
EmptyNegation,
UnsupportedCombinator(char),
UnsupportedSyntax,
}
Expand description
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§
source§impl Clone for SelectorError
impl Clone for SelectorError
source§fn clone(&self) -> SelectorError
fn clone(&self) -> SelectorError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SelectorError
impl Debug for SelectorError
source§impl Display for SelectorError
impl Display for SelectorError
source§impl Error for SelectorError
impl Error for SelectorError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ParseError<'_, SelectorParseErrorKind<'_>>> for SelectorError
impl From<ParseError<'_, SelectorParseErrorKind<'_>>> for SelectorError
source§fn from(err: SelectorParseError<'_>) -> Self
fn from(err: SelectorParseError<'_>) -> Self
Converts to this type from the input type.
source§impl PartialEq<SelectorError> for SelectorError
impl PartialEq<SelectorError> for SelectorError
source§fn eq(&self, other: &SelectorError) -> bool
fn eq(&self, other: &SelectorError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SelectorError
impl Eq for SelectorError
impl StructuralEq for SelectorError
impl StructuralPartialEq for SelectorError
Auto Trait Implementations§
impl RefUnwindSafe for SelectorError
impl Send for SelectorError
impl Sync for SelectorError
impl Unpin for SelectorError
impl UnwindSafe for SelectorError
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