Struct FoldMany1

pub struct FoldMany1<F, G, Init, R> { /* private fields */ }

Parser implementation for the [fold_many1] combinator

Trait Implementations

impl<I, F, G, Init, R> Parser<I> for FoldMany1<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, i: I) -> PResult<OM, I, Self::Output, Self::Error>

Auto Trait Implementations

impl<F, G, Init, R> Freeze for FoldMany1<F, G, Init, R> where F: Freeze, G: Freeze, Init: Freeze, PhantomData<R>: Freeze,

impl<F, G, Init, R> RefUnwindSafe for FoldMany1<F, G, Init, R> where F: RefUnwindSafe, G: RefUnwindSafe, Init: RefUnwindSafe, PhantomData<R>: RefUnwindSafe,

impl<F, G, Init, R> Send for FoldMany1<F, G, Init, R> where F: Send, G: Send, Init: Send, PhantomData<R>: Send,

impl<F, G, Init, R> Sync for FoldMany1<F, G, Init, R> where F: Sync, G: Sync, Init: Sync, PhantomData<R>: Sync,

impl<F, G, Init, R> Unpin for FoldMany1<F, G, Init, R> where F: Unpin, G: Unpin, Init: Unpin, PhantomData<R>: Unpin,

impl<F, G, Init, R> UnsafeUnpin for FoldMany1<F, G, Init, R> where F: UnsafeUnpin, G: UnsafeUnpin, Init: UnsafeUnpin, PhantomData<R>: UnsafeUnpin,

impl<F, G, Init, R> UnwindSafe for FoldMany1<F, G, Init, R> where F: UnwindSafe, G: UnwindSafe, Init: UnwindSafe, PhantomData<R>: UnwindSafe,

Blanket Implementations

impl<T> Any for FoldMany1<F, G, Init, R> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for FoldMany1<F, G, Init, R> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for FoldMany1<F, G, Init, R> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for FoldMany1<F, G, Init, R>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for FoldMany1<F, G, Init, R> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for FoldMany1<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 FoldMany1<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>