Struct Digit1

pub struct Digit1<E> { /* private fields */ }

Parser implementation for [digit1]

Trait Implementations

impl<I: Input, E: ParseError<I>> Parser<I> for Digit1<E> where <I as Input>::Item: AsChar,

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

Auto Trait Implementations

impl<E> Freeze for Digit1<E> where PhantomData<E>: Freeze,

impl<E> RefUnwindSafe for Digit1<E> where PhantomData<E>: RefUnwindSafe,

impl<E> Send for Digit1<E> where PhantomData<E>: Send,

impl<E> Sync for Digit1<E> where PhantomData<E>: Sync,

impl<E> Unpin for Digit1<E> where PhantomData<E>: Unpin,

impl<E> UnsafeUnpin for Digit1<E> where PhantomData<E>: UnsafeUnpin,

impl<E> UnwindSafe for Digit1<E> where PhantomData<E>: UnwindSafe,

Blanket Implementations

impl<T> Any for Digit1<E> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for Digit1<E> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for Digit1<E> where T: ?Sized,

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

impl<T> From<T> for Digit1<E>

fn from(t: T) -> T

Returns the argument unchanged.

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

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

impl<T, U> TryInto<U> for Digit1<E> where U: TryFrom<T>,

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