Struct Into

pub struct Into<F, O2, E2> { /* private fields */ }

Implementation of Parser::into

Trait Implementations

impl<I, O2: From<<F as Parser<I>>::Output>, E2: ParseError<I> + From<<F as Parser<I>>::Error>, F: Parser<I>> Parser<I> for Into<F, O2, E2>

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

Auto Trait Implementations

impl<F, O2, E2> Freeze for Into<F, O2, E2> where F: Freeze, PhantomData<O2>: Freeze, PhantomData<E2>: Freeze,

impl<F, O2, E2> RefUnwindSafe for Into<F, O2, E2> where F: RefUnwindSafe, PhantomData<O2>: RefUnwindSafe, PhantomData<E2>: RefUnwindSafe,

impl<F, O2, E2> Send for Into<F, O2, E2> where F: Send, PhantomData<O2>: Send, PhantomData<E2>: Send,

impl<F, O2, E2> Sync for Into<F, O2, E2> where F: Sync, PhantomData<O2>: Sync, PhantomData<E2>: Sync,

impl<F, O2, E2> Unpin for Into<F, O2, E2> where F: Unpin, PhantomData<O2>: Unpin, PhantomData<E2>: Unpin,

impl<F, O2, E2> UnsafeUnpin for Into<F, O2, E2> where F: UnsafeUnpin, PhantomData<O2>: UnsafeUnpin, PhantomData<E2>: UnsafeUnpin,

impl<F, O2, E2> UnwindSafe for Into<F, O2, E2> where F: UnwindSafe, PhantomData<O2>: UnwindSafe, PhantomData<E2>: UnwindSafe,

Blanket Implementations

impl<T> Any for Into<F, O2, E2> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for Into<F, O2, E2> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for Into<F, O2, E2> where T: ?Sized,

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

impl<T> From<T> for Into<F, O2, E2>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for Into<F, O2, E2> 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 Into<F, O2, E2> where U: Into<T>,

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

impl<T, U> TryInto<U> for Into<F, O2, E2> where U: TryFrom<T>,

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