Struct LengthCount

pub struct LengthCount<F, G, E> { /* private fields */ }

Parser implementation for the [length_count] combinator

Trait Implementations

impl<I, F, G, E> Parser<I> for LengthCount<F, G, E> where I: Clone, F: Parser<I, Error = E>, G: Parser<I, Error = E>, <F as Parser<I>>::Output: ToUsize, E: ParseError<I>,

type Output = Vec<<G as Parser<I>>::Output>;
type Error = E;
fn process<OM: OutputMode>(&mut self, input: I) -> PResult<OM, I, Self::Output, Self::Error>

Auto Trait Implementations

impl<F, G, E> Freeze for LengthCount<F, G, E> where F: Freeze, G: Freeze, PhantomData<E>: Freeze,

impl<F, G, E> RefUnwindSafe for LengthCount<F, G, E> where F: RefUnwindSafe, G: RefUnwindSafe, PhantomData<E>: RefUnwindSafe,

impl<F, G, E> Send for LengthCount<F, G, E> where F: Send, G: Send, PhantomData<E>: Send,

impl<F, G, E> Sync for LengthCount<F, G, E> where F: Sync, G: Sync, PhantomData<E>: Sync,

impl<F, G, E> Unpin for LengthCount<F, G, E> where F: Unpin, G: Unpin, PhantomData<E>: Unpin,

impl<F, G, E> UnsafeUnpin for LengthCount<F, G, E> where F: UnsafeUnpin, G: UnsafeUnpin, PhantomData<E>: UnsafeUnpin,

impl<F, G, E> UnwindSafe for LengthCount<F, G, E> where F: UnwindSafe, G: UnwindSafe, PhantomData<E>: UnwindSafe,

Blanket Implementations

impl<T> Any for LengthCount<F, G, E> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for LengthCount<F, G, E> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for LengthCount<F, G, E> where T: ?Sized,

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

impl<T> From<T> for LengthCount<F, G, E>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for LengthCount<F, G, E> 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 LengthCount<F, G, E> where U: Into<T>,

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

impl<T, U> TryInto<U> for LengthCount<F, G, E> where U: TryFrom<T>,

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