selectors::parser

Type Alias SelectorParseError

Source
pub type SelectorParseError<'i> = ParseError<'i, SelectorParseErrorKind<'i>>;

Aliased Type§

struct SelectorParseError<'i> {
    pub kind: ParseErrorKind<'i, SelectorParseErrorKind<'i>>,
    pub location: SourceLocation,
}

Fields§

§kind: ParseErrorKind<'i, SelectorParseErrorKind<'i>>

Details of this error

§location: SourceLocation

Location where this error occurred

Implementations

Source§

impl<'i, T> ParseError<'i, T>

Source

pub fn basic(self) -> BasicParseError<'i>

Extract the fundamental parse error from an extensible error.

Source

pub fn into<U>(self) -> ParseError<'i, U>
where T: Into<U>,

Like std::convert::Into::into

Trait Implementations

Source§

impl<'i, E> Clone for ParseError<'i, E>
where E: Clone,

Source§

fn clone(&self) -> ParseError<'i, E>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'i, E> Debug for ParseError<'i, E>
where E: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'i, E> Display for ParseError<'i, E>
where E: Display,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'i, E> Error for ParseError<'i, E>
where E: Display + Debug,

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl<'i, T> From<BasicParseError<'i>> for ParseError<'i, T>

Source§

fn from(this: BasicParseError<'i>) -> ParseError<'i, T>

Converts to this type from the input type.
Source§

impl<'i, E> PartialEq for ParseError<'i, E>
where E: PartialEq,

Source§

fn eq(&self, other: &ParseError<'i, E>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'i, E> StructuralPartialEq for ParseError<'i, E>