Struct chumsky::recovery::SkipParser
source · pub struct SkipParser<R>(_);
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.