pub enum OrEmitStatefulParser<P, F, R> {
Unresolved(P, F),
Resolved(R),
}Variants§
Trait Implementations§
Source§impl<P, F, R> Clone for OrEmitStatefulParser<P, F, R>
impl<P, F, R> Clone for OrEmitStatefulParser<P, F, R>
Source§impl<P, F, S> Stateful<S> for OrEmitStatefulParser<P, F, P::State>
impl<P, F, S> Stateful<S> for OrEmitStatefulParser<P, F, P::State>
Source§type Output = <P as Uncommitted<S>>::Output
type Output = <P as Uncommitted<S>>::Output
The type of the data being produced by the parser.
Source§fn parse(self, value: S) -> ParseResult<Self, S>
fn parse(self, value: S) -> ParseResult<Self, S>
Provides data to the parser. Read more
Source§fn done(self) -> Self::Output
fn done(self) -> Self::Output
Tells the parser that it will not receive any more data. Read more
Source§fn boxable(self) -> BoxableParser<Self>where
Self: Sized,
fn boxable(self) -> BoxableParser<Self>where
Self: Sized,
Make this parser boxable.
impl<P, F, R> Copy for OrEmitStatefulParser<P, F, R>
Auto Trait Implementations§
impl<P, F, R> Freeze for OrEmitStatefulParser<P, F, R>
impl<P, F, R> RefUnwindSafe for OrEmitStatefulParser<P, F, R>
impl<P, F, R> Send for OrEmitStatefulParser<P, F, R>
impl<P, F, R> Sync for OrEmitStatefulParser<P, F, R>
impl<P, F, R> Unpin for OrEmitStatefulParser<P, F, R>
impl<P, F, R> UnwindSafe for OrEmitStatefulParser<P, F, R>
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