pub struct ErrorWithPosition<'a, I = &'a [u8]>{
pub error: VerboseError<I>,
pub full_input: &'a [u8],
}
Expand description
A parser error with position info useful for printing human-readable messages.
Fields§
§error: VerboseError<I>
The error returned by the parser
full_input: &'a [u8]
The complete input we were trying to parse
Implementations§
Trait Implementations§
Source§impl<'a, I> Clone for ErrorWithPosition<'a, I>
impl<'a, I> Clone for ErrorWithPosition<'a, I>
Source§fn clone(&self) -> ErrorWithPosition<'a, I>
fn clone(&self) -> ErrorWithPosition<'a, I>
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<'a, I> Debug for ErrorWithPosition<'a, I>
impl<'a, I> Debug for ErrorWithPosition<'a, I>
Auto Trait Implementations§
impl<'a, I> Freeze for ErrorWithPosition<'a, I>
impl<'a, I> RefUnwindSafe for ErrorWithPosition<'a, I>where
I: RefUnwindSafe,
impl<'a, I> Send for ErrorWithPosition<'a, I>where
I: Send,
impl<'a, I> Sync for ErrorWithPosition<'a, I>where
I: Sync,
impl<'a, I> Unpin for ErrorWithPosition<'a, I>where
I: Unpin,
impl<'a, I> UnwindSafe for ErrorWithPosition<'a, I>where
I: 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