Struct cssparser::ParseError
[−]
[src]
pub struct ParseError<'i, E: 'i> { pub kind: ParseErrorKind<'i, E>, pub location: SourceLocation, }
Extensible parse errors that can be encountered by client parsing implementations.
Fields
kind: ParseErrorKind<'i, E>
Details of this error
location: SourceLocation
Location where this error occurred
Methods
impl<'i, T> ParseError<'i, T>
[src]
pub fn basic(self) -> BasicParseError<'i>
[src]
Extract the fundamental parse error from an extensible error.
pub fn into<U>(self) -> ParseError<'i, U> where
T: Into<U>,
[src]
T: Into<U>,
Like std::convert::Into::into
Trait Implementations
impl<'i, T> From<BasicParseError<'i>> for ParseError<'i, T>
[src]
fn from(this: BasicParseError<'i>) -> ParseError<'i, T>
[src]
Performs the conversion.
impl<'i, E: Clone + 'i> Clone for ParseError<'i, E>
[src]
fn clone(&self) -> ParseError<'i, E>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'i, E: Debug + 'i> Debug for ParseError<'i, E>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'i, E: PartialEq + 'i> PartialEq for ParseError<'i, E>
[src]
fn eq(&self, __arg_0: &ParseError<'i, E>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ParseError<'i, E>) -> bool
[src]
This method tests for !=
.