pub enum CssPathParseError<'a> {
EmptyPath,
InvalidTokenEncountered(&'a str),
UnexpectedEndOfStream(&'a str),
SyntaxError(CssSyntaxError),
NodeTypePath(NodeTypePathParseError<'a>),
PseudoSelectorParseError(CssPseudoSelectorParseError<'a>),
}
Variants§
EmptyPath
InvalidTokenEncountered(&'a str)
Invalid item encountered in string (for example a “{”, “}”)
UnexpectedEndOfStream(&'a str)
SyntaxError(CssSyntaxError)
NodeTypePath(NodeTypePathParseError<'a>)
The path has to be either *
, div
, p
or something like that
PseudoSelectorParseError(CssPseudoSelectorParseError<'a>)
Error while parsing a pseudo selector (like :aldkfja
)
Trait Implementations§
Source§impl<'a> Clone for CssPathParseError<'a>
impl<'a> Clone for CssPathParseError<'a>
Source§fn clone(&self) -> CssPathParseError<'a>
fn clone(&self) -> CssPathParseError<'a>
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<'a> Debug for CssPathParseError<'a>
impl<'a> Debug for CssPathParseError<'a>
Source§impl<'a> From<CssPseudoSelectorParseError<'a>> for CssPathParseError<'a>
impl<'a> From<CssPseudoSelectorParseError<'a>> for CssPathParseError<'a>
Source§fn from(e: CssPseudoSelectorParseError<'a>) -> Self
fn from(e: CssPseudoSelectorParseError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<Error> for CssPathParseError<'a>
impl<'a> From<Error> for CssPathParseError<'a>
Source§fn from(e: CssSyntaxError) -> Self
fn from(e: CssSyntaxError) -> Self
Converts to this type from the input type.
Source§impl<'a> From<NodeTypePathParseError<'a>> for CssPathParseError<'a>
impl<'a> From<NodeTypePathParseError<'a>> for CssPathParseError<'a>
Source§fn from(e: NodeTypePathParseError<'a>) -> Self
fn from(e: NodeTypePathParseError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> PartialEq for CssPathParseError<'a>
impl<'a> PartialEq for CssPathParseError<'a>
impl<'a> StructuralPartialEq for CssPathParseError<'a>
Auto Trait Implementations§
impl<'a> Freeze for CssPathParseError<'a>
impl<'a> RefUnwindSafe for CssPathParseError<'a>
impl<'a> Send for CssPathParseError<'a>
impl<'a> Sync for CssPathParseError<'a>
impl<'a> Unpin for CssPathParseError<'a>
impl<'a> UnwindSafe for CssPathParseError<'a>
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