Struct AnyChar

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

Parser implementation for char

Trait Implementations

impl<I, Error: ParseError<I>> Parser<I> for AnyChar<Error> where I: Input, <I as Input>::Item: AsChar,

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

Auto Trait Implementations

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

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

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

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

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

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

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

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

impl<T> From<T> for AnyChar<E>

fn from(t: T) -> T

Returns the argument unchanged.

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

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

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

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