Struct Many

pub struct Many<F, R, Collection> { /* private fields */ }

Parser implementation for the [many] combinator

Trait Implementations

impl<I, F, R, Collection> Parser<I> for Many<F, R, Collection> where I: Clone + Input, F: Parser<I>, Collection: Extend<<F as Parser<I>>::Output> + Default, R: NomRange<usize>,

type Output = Collection;
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, R, Collection> Freeze for Many<F, R, Collection> where F: Freeze, R: Freeze, PhantomData<Collection>: Freeze,

impl<F, R, Collection> RefUnwindSafe for Many<F, R, Collection> where F: RefUnwindSafe, R: RefUnwindSafe, PhantomData<Collection>: RefUnwindSafe,

impl<F, R, Collection> Send for Many<F, R, Collection> where F: Send, R: Send, PhantomData<Collection>: Send,

impl<F, R, Collection> Sync for Many<F, R, Collection> where F: Sync, R: Sync, PhantomData<Collection>: Sync,

impl<F, R, Collection> Unpin for Many<F, R, Collection> where F: Unpin, R: Unpin, PhantomData<Collection>: Unpin,

impl<F, R, Collection> UnsafeUnpin for Many<F, R, Collection> where F: UnsafeUnpin, R: UnsafeUnpin, PhantomData<Collection>: UnsafeUnpin,

impl<F, R, Collection> UnwindSafe for Many<F, R, Collection> where F: UnwindSafe, R: UnwindSafe, PhantomData<Collection>: UnwindSafe,

Blanket Implementations

impl<T> Any for Many<F, R, Collection> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for Many<F, R, Collection> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for Many<F, R, Collection> where T: ?Sized,

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

impl<T> From<T> for Many<F, R, Collection>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for Many<F, R, Collection> 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 Many<F, R, Collection> where U: Into<T>,

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

impl<T, U> TryInto<U> for Many<F, R, Collection> where U: TryFrom<T>,

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