pub struct Parser<'input> { /* private fields */ }Expand description
A byte parser that recognizes Patterns
Implementations§
source§impl<'i> Parser<'i>
impl<'i> Parser<'i>
sourcepub fn new(input: &'i [u8]) -> Self
pub fn new(input: &'i [u8]) -> Self
Returns a new instance of Parser that will operate on input
sourcepub fn advance(&mut self, step: usize)
pub fn advance(&mut self, step: usize)
Advances the parser by step. Does nothing if the parser is at the end of the input
Auto Trait Implementations§
impl<'input> RefUnwindSafe for Parser<'input>
impl<'input> Send for Parser<'input>
impl<'input> Sync for Parser<'input>
impl<'input> Unpin for Parser<'input>
impl<'input> UnwindSafe for Parser<'input>
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