Struct chumsky::recovery::NestedDelimiters
source · [−]pub struct NestedDelimiters<I, F, const N: usize>(_, _, _, _);
Expand description
See nested_delimiters
.
Trait Implementations
sourceimpl<I: Clone, F: Clone, const N: usize> Clone for NestedDelimiters<I, F, N>
impl<I: Clone, F: Clone, const N: usize> Clone for NestedDelimiters<I, F, N>
sourcefn clone(&self) -> NestedDelimiters<I, F, N>
fn clone(&self) -> NestedDelimiters<I, F, N>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<I: Clone + PartialEq, O, F: Fn(E::Span) -> O, E: Error<I>, const N: usize> Strategy<I, O, E> for NestedDelimiters<I, F, N>
impl<I: Clone + PartialEq, O, F: Fn(E::Span) -> O, E: Error<I>, const N: usize> Strategy<I, O, E> for NestedDelimiters<I, F, N>
sourcefn 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<I: Copy, F: Copy, const N: usize> Copy for NestedDelimiters<I, F, N>
Auto Trait Implementations
impl<I, F, const N: usize> RefUnwindSafe for NestedDelimiters<I, F, N> where
F: RefUnwindSafe,
I: RefUnwindSafe,
impl<I, F, const N: usize> Send for NestedDelimiters<I, F, N> where
F: Send,
I: Send,
impl<I, F, const N: usize> Sync for NestedDelimiters<I, F, N> where
F: Sync,
I: Sync,
impl<I, F, const N: usize> Unpin for NestedDelimiters<I, F, N> where
F: Unpin,
I: Unpin,
impl<I, F, const N: usize> UnwindSafe for NestedDelimiters<I, F, N> where
F: UnwindSafe,
I: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more