pub struct Position<'a, I: AsBytes = &'a [u8]> {
pub state: &'a I,
pub full_input: &'a [u8],
}
Expand description
Helper struct that prints human-readable position information when formatted with
Display
.
Fields§
§state: &'a I
The state of the parser at the time we are interested in
full_input: &'a [u8]
The complete input we are trying to parse
Trait Implementations§
Auto Trait Implementations§
impl<'a, I> Freeze for Position<'a, I>
impl<'a, I> RefUnwindSafe for Position<'a, I>where
I: RefUnwindSafe,
impl<'a, I> Send for Position<'a, I>where
I: Sync,
impl<'a, I> Sync for Position<'a, I>where
I: Sync,
impl<'a, I> Unpin for Position<'a, I>
impl<'a, I> UnwindSafe for Position<'a, I>where
I: RefUnwindSafe,
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