pub struct PipeParser<P, Q>(/* private fields */);
Implementations§
Source§impl<P, Q> PipeParser<P, Q>
impl<P, Q> PipeParser<P, Q>
Trait Implementations§
Source§impl<P: Clone, Q: Clone> Clone for PipeParser<P, Q>
impl<P: Clone, Q: Clone> Clone for PipeParser<P, Q>
Source§fn clone(&self) -> PipeParser<P, Q>
fn clone(&self) -> PipeParser<P, Q>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<P, Q, S> Committed<S> for PipeParser<P, Q>
impl<P, Q, S> Committed<S> for PipeParser<P, Q>
Source§type State = PipeStateful<P, <P as Committed<S>>::State, <Q as Committed<Peekable<IterParser<P, <P as Committed<S>>::State, S>>>>::State>
type State = PipeStateful<P, <P as Committed<S>>::State, <Q as Committed<Peekable<IterParser<P, <P as Committed<S>>::State, S>>>>::State>
The type of the parser state.
Source§impl<P, Q> Parser for PipeParser<P, Q>
impl<P, Q> Parser for PipeParser<P, Q>
Source§fn or_else<P>(self, other: P) -> OrElseParser<Self, P>where
Self: Sized,
fn or_else<P>(self, other: P) -> OrElseParser<Self, P>where
Self: Sized,
Choice between parsers (returns a parser).
Source§fn or_emit<F>(self, factory: F) -> OrEmitParser<Self, F>where
Self: Sized,
fn or_emit<F>(self, factory: F) -> OrEmitParser<Self, F>where
Self: Sized,
Gives a parser a default value (returns a committed parser).
Source§fn and_then<P>(self, other: P) -> AndThenParser<Self, P>where
Self: Sized,
fn and_then<P>(self, other: P) -> AndThenParser<Self, P>where
Self: Sized,
Sequencing with a committed parser (returns a committed parser).
Source§fn try_and_then<P>(self, other: P) -> MapParser<AndThenParser<Self, P>, TryZip>where
Self: Sized,
fn try_and_then<P>(self, other: P) -> MapParser<AndThenParser<Self, P>, TryZip>where
Self: Sized,
Sequencing with a committed parser (returns a committed parser which produces an error when this parser returns an error).
Source§fn and_then_try<P>(self, other: P) -> MapParser<AndThenParser<Self, P>, ZipTry>where
Self: Sized,
fn and_then_try<P>(self, other: P) -> MapParser<AndThenParser<Self, P>, ZipTry>where
Self: Sized,
Sequencing with a committed parser (returns a committed parser which produces an error when the other parser returns an error).
Source§fn try_and_then_try<P>(
self,
other: P,
) -> MapParser<AndThenParser<Self, P>, TryZipTry>where
Self: Sized,
fn try_and_then_try<P>(
self,
other: P,
) -> MapParser<AndThenParser<Self, P>, TryZipTry>where
Self: Sized,
Sequencing with a committed parser (returns a committed parser which produces an error when the other parser returns an error).
Source§fn plus<F>(self, factory: F) -> PlusParser<Self, F>where
Self: Sized,
fn plus<F>(self, factory: F) -> PlusParser<Self, F>where
Self: Sized,
Iterate one or more times (returns a parser).
Source§fn star<F>(self, factory: F) -> StarParser<Self, F>where
Self: Sized,
fn star<F>(self, factory: F) -> StarParser<Self, F>where
Self: Sized,
Iterate zero or more times (returns a committed parser).
Source§fn map<F>(self, f: F) -> MapParser<Self, F>where
Self: Sized,
fn map<F>(self, f: F) -> MapParser<Self, F>where
Self: Sized,
Apply a function to the result (returns a committed parser).
Source§fn map2<F>(self, f: F) -> MapParser<Self, Function2<F>>where
Self: Sized,
fn map2<F>(self, f: F) -> MapParser<Self, Function2<F>>where
Self: Sized,
Apply a 2-arguent function to the result (returns a committed parser).
Source§fn map3<F>(self, f: F) -> MapParser<Self, Function3<F>>where
Self: Sized,
fn map3<F>(self, f: F) -> MapParser<Self, Function3<F>>where
Self: Sized,
Apply a 3-arguent function to the result (returns a committed parser).
Source§fn map4<F>(self, f: F) -> MapParser<Self, Function4<F>>where
Self: Sized,
fn map4<F>(self, f: F) -> MapParser<Self, Function4<F>>where
Self: Sized,
Apply a 4-arguent function to the result (returns a committed parser).
Source§fn map5<F>(self, f: F) -> MapParser<Self, Function5<F>>where
Self: Sized,
fn map5<F>(self, f: F) -> MapParser<Self, Function5<F>>where
Self: Sized,
Apply a 5-arguent function to the result (returns a committed parser).
Source§fn try_map<F>(self, f: F) -> MapParser<Self, Try<F>>where
Self: Sized,
fn try_map<F>(self, f: F) -> MapParser<Self, Try<F>>where
Self: Sized,
Apply a function to the result (returns a committed parser which produces an error when this parser returns an error).
Source§fn try_map2<F>(self, f: F) -> MapParser<Self, Try<Function2<F>>>where
Self: Sized,
fn try_map2<F>(self, f: F) -> MapParser<Self, Try<Function2<F>>>where
Self: Sized,
Apply a 2-argument function to the result (returns a committed parser which produces an error when this parser returns an error).
Source§fn try_map3<F>(self, f: F) -> MapParser<Self, Try<Function3<F>>>where
Self: Sized,
fn try_map3<F>(self, f: F) -> MapParser<Self, Try<Function3<F>>>where
Self: Sized,
Apply a 3-argument function to the result (returns a committed parser which produces an error when this parser returns an error).
Source§fn try_map4<F>(self, f: F) -> MapParser<Self, Try<Function4<F>>>where
Self: Sized,
fn try_map4<F>(self, f: F) -> MapParser<Self, Try<Function4<F>>>where
Self: Sized,
Apply a 4-argument function to the result (returns a committed parser which produces an error when this parser returns an error).
Source§fn try_map5<F>(self, f: F) -> MapParser<Self, Try<Function5<F>>>where
Self: Sized,
fn try_map5<F>(self, f: F) -> MapParser<Self, Try<Function5<F>>>where
Self: Sized,
Apply a 5-argument function to the result (returns a committed parser which produces an error when this parser returns an error).
Source§fn pipe<P>(self, other: P) -> PipeParser<Self, P>where
Self: Sized,
fn pipe<P>(self, other: P) -> PipeParser<Self, P>where
Self: Sized,
Take the results of iterating this parser, and feed it into another parser.
impl<P: Copy, Q: Copy> Copy for PipeParser<P, Q>
Auto Trait Implementations§
impl<P, Q> Freeze for PipeParser<P, Q>
impl<P, Q> RefUnwindSafe for PipeParser<P, Q>where
P: RefUnwindSafe,
Q: RefUnwindSafe,
impl<P, Q> Send for PipeParser<P, Q>
impl<P, Q> Sync for PipeParser<P, Q>
impl<P, Q> Unpin for PipeParser<P, Q>
impl<P, Q> UnwindSafe for PipeParser<P, Q>where
P: UnwindSafe,
Q: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more