pub struct NestedDelimiters<I, F, const N: usize>(/* private fields */);
Expand description
See nested_delimiters
.
Trait Implementations§
Source§impl<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>
Source§fn clone(&self) -> NestedDelimiters<I, F, N>
fn clone(&self) -> NestedDelimiters<I, F, N>
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, 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>
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<I: Copy, F: Copy, const N: usize> Copy for NestedDelimiters<I, F, N>
Auto Trait Implementations§
impl<I, F, const N: usize> Freeze for NestedDelimiters<I, F, N>
impl<I, F, const N: usize> RefUnwindSafe for NestedDelimiters<I, F, N>where
I: RefUnwindSafe,
F: RefUnwindSafe,
impl<I, F, const N: usize> Send for NestedDelimiters<I, F, N>
impl<I, F, const N: usize> Sync for NestedDelimiters<I, F, N>
impl<I, F, const N: usize> Unpin for NestedDelimiters<I, F, N>
impl<I, F, const N: usize> UnwindSafe for NestedDelimiters<I, F, N>where
I: UnwindSafe,
F: 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