Struct Fold

pub struct Fold<F, G, H, Range> { /* private fields */ }

Parser implementation for the [fold] combinator

Trait Implementations

impl<I, F, G, H, Range, Res> Parser<I> for Fold<F, G, H, Range> where I: Clone + Input, F: Parser<I>, G: FnMut(Res, <F as Parser<I>>::Output) -> Res, H: FnMut() -> Res, Range: NomRange<usize>,

type Output = Res;
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, H, Range> Freeze for Fold<F, G, H, Range> where F: Freeze, H: Freeze, G: Freeze, Range: Freeze,

impl<F, G, H, Range> RefUnwindSafe for Fold<F, G, H, Range> where F: RefUnwindSafe, H: RefUnwindSafe, G: RefUnwindSafe, Range: RefUnwindSafe,

impl<F, G, H, Range> Send for Fold<F, G, H, Range> where F: Send, H: Send, G: Send, Range: Send,

impl<F, G, H, Range> Sync for Fold<F, G, H, Range> where F: Sync, H: Sync, G: Sync, Range: Sync,

impl<F, G, H, Range> Unpin for Fold<F, G, H, Range> where F: Unpin, H: Unpin, G: Unpin, Range: Unpin,

impl<F, G, H, Range> UnsafeUnpin for Fold<F, G, H, Range> where F: UnsafeUnpin, H: UnsafeUnpin, G: UnsafeUnpin, Range: UnsafeUnpin,

impl<F, G, H, Range> UnwindSafe for Fold<F, G, H, Range> where F: UnwindSafe, H: UnwindSafe, G: UnwindSafe, Range: UnwindSafe,

Blanket Implementations

impl<T> Any for Fold<F, G, H, Range> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for Fold<F, G, H, Range> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for Fold<F, G, H, Range> where T: ?Sized,

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

impl<T> From<T> for Fold<F, G, H, Range>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for Fold<F, G, H, Range> 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 Fold<F, G, H, Range> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for Fold<F, G, H, Range> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>