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>
impl<'i, T> ParseError<'i, T>
Sourcepub fn basic(self) -> BasicParseError<'i>
pub fn basic(self) -> BasicParseError<'i>
Extract the fundamental parse error from an extensible error.
Sourcepub fn into<U>(self) -> ParseError<'i, U>where
T: Into<U>,
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,
impl<'i, E> Clone for ParseError<'i, E>where
E: Clone,
Source§fn clone(&self) -> ParseError<'i, E>
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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'i, E> Debug for ParseError<'i, E>where
E: Debug,
impl<'i, E> Debug for ParseError<'i, E>where
E: Debug,
Source§impl<'i, E> Display for ParseError<'i, E>where
E: Display,
impl<'i, E> Display for ParseError<'i, E>where
E: Display,
Source§impl<'i, E> Error for ParseError<'i, E>
impl<'i, E> Error for ParseError<'i, E>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
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
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl<'i, T> From<BasicParseError<'i>> for ParseError<'i, T>
impl<'i, T> From<BasicParseError<'i>> for ParseError<'i, T>
Source§fn from(this: BasicParseError<'i>) -> ParseError<'i, T>
fn from(this: BasicParseError<'i>) -> ParseError<'i, T>
Converts to this type from the input type.