Struct AndThen
pub struct AndThen<F, G> { /* private fields */ }
Implementation of Parser::and_then
Trait Implementations
impl<I, F: Parser<I>, G: Parser<<F as Parser<I>>::Output, Error = <F as Parser<I>>::Error>> Parser<I> for AndThen<F, G>
type Output = <G as Parser<<F as Parser<I>>::Output>>::Output;type Error = <F as Parser<I>>::Error;fn process<OM: OutputMode>(&mut self, i: I) -> PResult<OM, I, Self::Output, Self::Error>
Auto Trait Implementations
impl<F, G> Freeze for AndThen<F, G>
where
F: Freeze,
G: Freeze,
impl<F, G> RefUnwindSafe for AndThen<F, G>
where
F: RefUnwindSafe,
G: RefUnwindSafe,
impl<F, G> Send for AndThen<F, G>
where
F: Send,
G: Send,
impl<F, G> Sync for AndThen<F, G>
where
F: Sync,
G: Sync,
impl<F, G> Unpin for AndThen<F, G>
where
F: Unpin,
G: Unpin,
impl<F, G> UnsafeUnpin for AndThen<F, G>
where
F: UnsafeUnpin,
G: UnsafeUnpin,
impl<F, G> UnwindSafe for AndThen<F, G>
where
F: UnwindSafe,
G: UnwindSafe,
Blanket Implementations
impl<T> Any for AndThen<F, G>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for AndThen<F, G>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for AndThen<F, G>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for AndThen<F, G>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for AndThen<F, G>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for AndThen<F, G>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for AndThen<F, G>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>