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
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)