Available on crate feature
mtls
only.Expand description
Implementation of Parser::into
Trait Implementations
impl<'a, I, O1, O2, E1, E2, F> Parser<I, O2, E2> for Into<F, O1, O2, E1, E2> where
I: Clone,
O2: From<O1>,
E2: ParseError<I> + From<E1>,
F: Parser<I, O1, E1>,
impl<'a, I, O1, O2, E1, E2, F> Parser<I, O2, E2> for Into<F, O1, O2, E1, E2> where
I: Clone,
O2: From<O1>,
E2: ParseError<I> + From<E1>,
F: Parser<I, O1, E1>,
fn parse(&mut self, i: I) -> Result<(I, O2), Err<E2>>
fn parse(&mut self, i: I) -> Result<(I, O2), Err<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
fn map<G, O2>(self, g: G) -> Map<Self, G, O> where
G: Fn(O) -> O2,
fn map<G, O2>(self, g: G) -> Map<Self, G, O> where
G: Fn(O) -> O2,
Maps a function over the result of a parser
fn flat_map<G, H, O2>(self, g: G) -> FlatMap<Self, G, O> where
G: FnMut(O) -> H,
H: Parser<I, O2, E>,
fn flat_map<G, H, O2>(self, g: G) -> FlatMap<Self, G, O> where
G: FnMut(O) -> H,
H: Parser<I, O2, E>,
Creates a second parser from the output of the first one, then apply over the rest of the input
fn and_then<G, O2>(self, g: G) -> AndThen<Self, G, O> where
G: Parser<O, O2, E>,
fn and_then<G, O2>(self, g: G) -> AndThen<Self, G, O> where
G: Parser<O, O2, E>,
Applies a second parser over the output of the first one
fn and<G, O2>(self, g: G) -> And<Self, G> where
G: Parser<I, O2, E>,
fn and<G, O2>(self, g: G) -> And<Self, G> where
G: Parser<I, O2, E>,
Applies a second parser after the first one, return their results as a tuple
Auto Trait Implementations
impl<F, O1, O2, E1, E2> RefUnwindSafe for Into<F, O1, O2, E1, E2> where
E1: RefUnwindSafe,
E2: RefUnwindSafe,
F: RefUnwindSafe,
O1: RefUnwindSafe,
O2: RefUnwindSafe,
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<F, O1, O2, E1, E2> UnwindSafe for Into<F, O1, O2, E1, E2> where
E1: UnwindSafe,
E2: UnwindSafe,
F: UnwindSafe,
O1: UnwindSafe,
O2: UnwindSafe,
Blanket Implementations
impl<'a, T> AsTaggedExplicit<'a> for T where
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for T where
T: 'a,
fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self>
impl<'a, T> AsTaggedImplicit<'a> for T where
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for T where
T: 'a,
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
sourcefn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
Converts self
into a collection.
fn mapped<U, F, A>(self, f: F) -> SmallVec<A> where
F: FnMut(T) -> U,
A: Array<Item = U>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more