pub struct SkipParser<R>(/* private fields */);
Expand description
See skip_parser
.
Trait Implementations§
Source§impl<R: Clone> Clone for SkipParser<R>
impl<R: Clone> Clone for SkipParser<R>
Source§fn clone(&self) -> SkipParser<R>
fn clone(&self) -> SkipParser<R>
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: Clone + PartialEq, O, R: Parser<I, O, Error = E>, E: Error<I>> Strategy<I, O, E> for SkipParser<R>
impl<I: Clone + PartialEq, O, R: Parser<I, O, Error = E>, E: Error<I>> Strategy<I, O, E> for SkipParser<R>
Source§fn recover<D: Debugger, P: Parser<I, O, Error = E>>(
&self,
a_errors: Vec<Located<I, P::Error>>,
a_err: Located<I, P::Error>,
_parser: P,
debugger: &mut D,
stream: &mut Stream<'_, I, <P::Error as Error<I>>::Span>,
) -> (Vec<Located<I, P::Error>>, Result<(O, Option<Located<I, P::Error>>), Located<I, P::Error>>)
fn recover<D: Debugger, P: Parser<I, O, Error = E>>( &self, a_errors: Vec<Located<I, P::Error>>, a_err: Located<I, P::Error>, _parser: P, debugger: &mut D, stream: &mut Stream<'_, I, <P::Error as Error<I>>::Span>, ) -> (Vec<Located<I, P::Error>>, Result<(O, Option<Located<I, P::Error>>), Located<I, P::Error>>)
Recover from a parsing failure.
impl<R: Copy> Copy for SkipParser<R>
Auto Trait Implementations§
impl<R> Freeze for SkipParser<R>where
R: Freeze,
impl<R> RefUnwindSafe for SkipParser<R>where
R: RefUnwindSafe,
impl<R> Send for SkipParser<R>where
R: Send,
impl<R> Sync for SkipParser<R>where
R: Sync,
impl<R> Unpin for SkipParser<R>where
R: Unpin,
impl<R> UnwindSafe for SkipParser<R>where
R: 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