Struct FoldManyMN
pub struct FoldManyMN<F, G, Init, R> { /* private fields */ }
Parser implementation for the [fold_many_m_n] combinator
Trait Implementations
impl<I, F, G, Init, R> Parser<I> for FoldManyMN<F, G, Init, R>
where
I: Clone + Input,
F: Parser<I>,
G: FnMut(R, <F as Parser<I>>::Output) -> R,
Init: FnMut() -> R,
type Output = R;type Error = <F as Parser<I>>::Error;fn process<OM: OutputMode>(&mut self, input: I) -> PResult<OM, I, Self::Output, Self::Error>
Auto Trait Implementations
impl<F, G, Init, R> Freeze for FoldManyMN<F, G, Init, R>
where
F: Freeze,
G: Freeze,
Init: Freeze,
PhantomData<R>: Freeze,
impl<F, G, Init, R> RefUnwindSafe for FoldManyMN<F, G, Init, R>
where
F: RefUnwindSafe,
G: RefUnwindSafe,
Init: RefUnwindSafe,
PhantomData<R>: RefUnwindSafe,
impl<F, G, Init, R> Send for FoldManyMN<F, G, Init, R>
where
F: Send,
G: Send,
Init: Send,
PhantomData<R>: Send,
impl<F, G, Init, R> Sync for FoldManyMN<F, G, Init, R>
where
F: Sync,
G: Sync,
Init: Sync,
PhantomData<R>: Sync,
impl<F, G, Init, R> Unpin for FoldManyMN<F, G, Init, R>
where
F: Unpin,
G: Unpin,
Init: Unpin,
PhantomData<R>: Unpin,
impl<F, G, Init, R> UnsafeUnpin for FoldManyMN<F, G, Init, R>
where
F: UnsafeUnpin,
G: UnsafeUnpin,
Init: UnsafeUnpin,
PhantomData<R>: UnsafeUnpin,
impl<F, G, Init, R> UnwindSafe for FoldManyMN<F, G, Init, R>
where
F: UnwindSafe,
G: UnwindSafe,
Init: UnwindSafe,
PhantomData<R>: UnwindSafe,
Blanket Implementations
impl<T> Any for FoldManyMN<F, G, Init, R>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for FoldManyMN<F, G, Init, R>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for FoldManyMN<F, G, Init, R>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for FoldManyMN<F, G, Init, R>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for FoldManyMN<F, G, Init, R>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for FoldManyMN<F, G, Init, R>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for FoldManyMN<F, G, Init, R>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>