Struct winnow::error::ParseError
source · pub struct ParseError<I, E> { /* private fields */ }
Expand description
See Parser::parse
Implementations§
source§impl<I, E> ParseError<I, E>
impl<I, E> ParseError<I, E>
sourcepub fn offset(&self) -> usize
pub fn offset(&self) -> usize
The location in ParseError::input
where parsing failed
Note: This is an offset, not an index, and may point to the end of input
(input.len()
) on eof errors.
sourcepub fn inner(&self) -> &E
pub fn inner(&self) -> &E
The original ParserError
sourcepub fn into_inner(self) -> E
pub fn into_inner(self) -> E
The original ParserError
Trait Implementations§
source§impl<I: Clone, E: Clone> Clone for ParseError<I, E>
impl<I: Clone, E: Clone> Clone for ParseError<I, E>
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: PartialEq, E: PartialEq> PartialEq<ParseError<I, E>> for ParseError<I, E>
impl<I: PartialEq, E: PartialEq> PartialEq<ParseError<I, E>> for ParseError<I, E>
source§fn eq(&self, other: &ParseError<I, E>) -> bool
fn eq(&self, other: &ParseError<I, E>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.