Struct Success

pub struct Success<O: Clone, E> { /* private fields */ }

Parser implementation for [success]

Trait Implementations

impl<I, O, E> Parser<I> for Success<O, E> where O: Clone, E: ParseError<I>,

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

Auto Trait Implementations

impl<O, E> Freeze for Success<O, E> where O: Freeze, PhantomData<E>: Freeze,

impl<O, E> RefUnwindSafe for Success<O, E> where O: RefUnwindSafe, PhantomData<E>: RefUnwindSafe,

impl<O, E> Send for Success<O, E> where O: Send, PhantomData<E>: Send,

impl<O, E> Sync for Success<O, E> where O: Sync, PhantomData<E>: Sync,

impl<O, E> Unpin for Success<O, E> where O: Unpin, PhantomData<E>: Unpin,

impl<O, E> UnsafeUnpin for Success<O, E> where O: UnsafeUnpin, PhantomData<E>: UnsafeUnpin,

impl<O, E> UnwindSafe for Success<O, E> where O: UnwindSafe, PhantomData<E>: UnwindSafe,

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

impl<T> From<T> for Success<O, E>

fn from(t: T) -> T

Returns the argument unchanged.

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

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

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

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