pub type ParseError<'i> = ParseError<'i, StyleParseErrorKind<'i>>;
Expand description
The error type for all CSS parsing routines.
Aliased Type§
struct ParseError<'i> {
pub kind: ParseErrorKind<'i, StyleParseErrorKind<'i>>,
pub location: SourceLocation,
}
Fields§
§kind: ParseErrorKind<'i, StyleParseErrorKind<'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<E> Display for ParseError<'_, E>where
E: Display,
impl<E> Display for ParseError<'_, E>where
E: Display,
Source§impl<E> Error for ParseError<'_, E>
impl<E> Error for ParseError<'_, 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.