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, E> Display for ParseError<I, E>
impl<I, E> Display for ParseError<I, E>
impl<I: Eq, E: Eq> Eq for ParseError<I, E>
impl<I, E> StructuralPartialEq for ParseError<I, E>
Auto Trait Implementations§
impl<I, E> Freeze for ParseError<I, E>
impl<I, E> RefUnwindSafe for ParseError<I, E>where
I: RefUnwindSafe,
E: RefUnwindSafe,
impl<I, E> Send for ParseError<I, E>
impl<I, E> Sync for ParseError<I, E>
impl<I, E> Unpin for ParseError<I, E>
impl<I, E> UnwindSafe for ParseError<I, E>where
I: UnwindSafe,
E: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more