Struct Count

struct Count<F> { ... }

Parser implementation for the [count] combinator

Implementations

impl<F> Freeze for Count<F>

impl<F> RefUnwindSafe for Count<F>

impl<F> Send for Count<F>

impl<F> Sync for Count<F>

impl<F> Unpin for Count<F>

impl<F> UnwindSafe for Count<F>

impl<I, F> Parser for Count<F>

fn process<OM: OutputMode>(self: &mut Self, i: I) -> crate::PResult<OM, I, <Self as >::Output, <Self as >::Error>

impl<T> Any for Count<F>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Count<F>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Count<F>

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

impl<T> From for Count<F>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for Count<F>

fn into(self: 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 for Count<F>

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

impl<T, U> TryInto for Count<F>

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