Struct FlatMap
pub struct FlatMap<F, G> { /* private fields */ }
Implementation of Parser::flat_map
Trait Implementations
impl<I, E: ParseError<I>, F: Parser<I, Error = E>, G: FnMut(<F as Parser<I>>::Output) -> H, H: Parser<I, Error = E>> Parser<I> for FlatMap<F, G>
type Output = <H as Parser<I>>::Output;type Error = E;fn process<OM: OutputMode>(&mut self, i: I) -> PResult<OM, I, Self::Output, Self::Error>
Auto Trait Implementations
impl<F, G> Freeze for FlatMap<F, G>
where
F: Freeze,
G: Freeze,
impl<F, G> RefUnwindSafe for FlatMap<F, G>
where
F: RefUnwindSafe,
G: RefUnwindSafe,
impl<F, G> Send for FlatMap<F, G>
where
F: Send,
G: Send,
impl<F, G> Sync for FlatMap<F, G>
where
F: Sync,
G: Sync,
impl<F, G> Unpin for FlatMap<F, G>
where
F: Unpin,
G: Unpin,
impl<F, G> UnsafeUnpin for FlatMap<F, G>
where
F: UnsafeUnpin,
G: UnsafeUnpin,
impl<F, G> UnwindSafe for FlatMap<F, G>
where
F: UnwindSafe,
G: UnwindSafe,
Blanket Implementations
impl<T> Any for FlatMap<F, G>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for FlatMap<F, G>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for FlatMap<F, G>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for FlatMap<F, G>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for FlatMap<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 FlatMap<F, G>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for FlatMap<F, G>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>