Struct Success

struct Success<O: Clone, E> { ... }

Parser implementation for [success]

Implementations

impl<I, O, E> Parser for Success<O, E>

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

impl<O, E> Freeze for Success<O, E>

impl<O, E> RefUnwindSafe for Success<O, E>

impl<O, E> Send for Success<O, E>

impl<O, E> Sync for Success<O, E>

impl<O, E> Unpin for Success<O, E>

impl<O, E> UnwindSafe for Success<O, E>

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

fn type_id(self: &Self) -> TypeId

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

fn borrow(self: &Self) -> &T

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

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

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

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for Success<O, E>

fn into(self: 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 for Success<O, E>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for Success<O, E>

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