Struct Char

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

Parser implementation for [char()]

Trait Implementations

impl<I, Error: ParseError<I>> Parser<I> for Char<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 Char<E> where PhantomData<E>: Freeze,

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

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

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

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

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

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

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

impl<T> From<T> for Char<E>

fn from(t: T) -> T

Returns the argument unchanged.

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

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

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

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