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]
impl<'i, T> ParseError<'i, T>
pub fn basic(self) -> BasicParseError<'i>
[src]
pub fn basic(self) -> BasicParseError<'i>
Extract the fundamental parse error from an extensible error.
pub fn into<U>(self) -> ParseError<'i, U> where
T: Into<U>,
[src]
pub fn into<U>(self) -> ParseError<'i, U> where
T: Into<U>,
Like std::convert::Into::into
Trait Implementations
impl<'i, T> From<BasicParseError<'i>> for ParseError<'i, T>
[src]
impl<'i, T> From<BasicParseError<'i>> for ParseError<'i, T>
fn from(this: BasicParseError<'i>) -> ParseError<'i, T>
[src]
fn from(this: BasicParseError<'i>) -> ParseError<'i, T>
Performs the conversion.
impl<'i, E: Clone + 'i> Clone for ParseError<'i, E>
[src]
impl<'i, E: Clone + 'i> Clone for ParseError<'i, E>
fn clone(&self) -> ParseError<'i, E>
[src]
fn clone(&self) -> ParseError<'i, E>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
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]
impl<'i, E: Debug + 'i> Debug for ParseError<'i, E>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'i, E: PartialEq + 'i> PartialEq for ParseError<'i, E>
[src]
impl<'i, E: PartialEq + 'i> PartialEq for ParseError<'i, E>
fn eq(&self, other: &ParseError<'i, E>) -> bool
[src]
fn eq(&self, other: &ParseError<'i, E>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ParseError<'i, E>) -> bool
[src]
fn ne(&self, other: &ParseError<'i, E>) -> bool
This method tests for !=
.
Auto Trait Implementations
impl<'i, E> !Send for ParseError<'i, E>
impl<'i, E> !Send for ParseError<'i, E>
impl<'i, E> !Sync for ParseError<'i, E>
impl<'i, E> !Sync for ParseError<'i, E>