Struct pear::ParseError
[−]
[src]
pub struct ParseError<I: Input> { pub parser: &'static str, pub expected: Expected<I>, }
Fields
parser: &'static str
expected: Expected<I>
Methods
impl<I: Input> ParseError<I>
[src]
pub fn custom<T, R>(parser: &'static str, message: T) -> ParseResult<I, R> where
T: Into<Cow<'static, str>>,
[src]
T: Into<Cow<'static, str>>,
Trait Implementations
impl<I: Debug + Input> Debug for ParseError<I>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<I: Clone + Input> Clone for ParseError<I>
[src]
fn clone(&self) -> ParseError<I>
[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: PartialEq + Input> PartialEq for ParseError<I>
[src]
fn eq(&self, __arg_0: &ParseError<I>) -> 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>) -> bool
[src]
This method tests for !=
.