Enum cssparser::ParseError
[−]
[src]
pub enum ParseError<'a, T: 'a> {
Basic(BasicParseError<'a>),
Custom(T),
}Extensible parse errors that can be encountered by client parsing implementations.
Variants
Basic(BasicParseError<'a>)A fundamental parse error from a built-in parsing routine.
Custom(T)A parse error reported by downstream consumer code.
Methods
impl<'a, T> ParseError<'a, T>[src]
fn basic(self) -> BasicParseError<'a>
Extract the fundamental parse error from an extensible error.
Trait Implementations
impl<'a, T> From<BasicParseError<'a>> for ParseError<'a, T>[src]
fn from(this: BasicParseError<'a>) -> ParseError<'a, T>
Performs the conversion.
impl<'a, T: Clone + 'a> Clone for ParseError<'a, T>[src]
fn clone(&self) -> ParseError<'a, T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl<'a, T: Debug + 'a> Debug for ParseError<'a, T>[src]
impl<'a, T: PartialEq + 'a> PartialEq for ParseError<'a, T>[src]
fn eq(&self, __arg_0: &ParseError<'a, T>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ParseError<'a, T>) -> bool
This method tests for !=.