pub struct Into<F, O1, O2: From<O1>, E1, E2: From<E1>> { /* fields omitted */ }
Expand description
Implementation of Parser::into
impl<'a, I: Clone, O1, O2: From<O1>, E1, E2: ParseError<I> + From<E1>, F: Parser<I, O1, E1>> Parser<I, O2, E2> for Into<F, O1, O2, E1, E2>
A parser takes in input type, and returns a Result
containing
either the remaining input and the output value, or an error Read more
Maps a function over the result of a parser
Creates a second parser from the output of the first one, then apply over the rest of the input
Applies a second parser over the output of the first one
Applies a second parser after the first one, return their results as a tuple
Applies a second parser over the input if the first one failed
automatically converts the parser’s output and error values to another type, as long as they
implement the From
trait Read more
impl<F, O1, O2, E1, E2> Send for Into<F, O1, O2, E1, E2> where
E1: Send,
E2: Send,
F: Send,
O1: Send,
O2: Send,
impl<F, O1, O2, E1, E2> Sync for Into<F, O1, O2, E1, E2> where
E1: Sync,
E2: Sync,
F: Sync,
O1: Sync,
O2: Sync,
impl<F, O1, O2, E1, E2> Unpin for Into<F, O1, O2, E1, E2> where
E1: Unpin,
E2: Unpin,
F: Unpin,
O1: Unpin,
O2: Unpin,
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.