pub struct ParserParsers;
Expand description
既存のParserを使用するParsers実装
Trait Implementations§
Source§impl Parsers for ParserParsers
impl Parsers for ParserParsers
type P<'p, I, A> = Parser<'p, I, A> where I: 'p, A: 'p
fn parse<'a, 'b, I, A>(
parser: &Self::P<'a, I, A>,
input: &'b [I],
) -> Result<A, ParseError<'a, I>>where
A: 'a,
'b: 'a,
fn successful<'a, I, A>(value: A) -> Self::P<'a, I, A>where
A: Clone + 'a,
fn successful_lazy<'a, I, A, F>(value: F) -> Self::P<'a, I, A>where
F: Fn() -> A + 'a,
A: 'a,
fn failed<'a, I, A>(
value: ParseError<'a, I>,
committed: CommittedStatus,
) -> Self::P<'a, I, A>where
I: Clone + 'a,
A: 'a,
fn failed_lazy<'a, I, A, F>(f: F) -> Self::P<'a, I, A>
fn filter<'a, I, A, F>(parser: Self::P<'a, I, A>, f: F) -> Self::P<'a, I, A>
fn flat_map<'a, I, A, B, F>( parser: Self::P<'a, I, A>, f: F, ) -> Self::P<'a, I, B>
fn map<'a, I, A, B, F>(parser: Self::P<'a, I, A>, f: F) -> Self::P<'a, I, B>where
F: Fn(A) -> B + 'a,
A: 'a,
B: 'a,
fn unit<'a, I>() -> Self::P<'a, I, ()>
Auto Trait Implementations§
impl Freeze for ParserParsers
impl RefUnwindSafe for ParserParsers
impl Send for ParserParsers
impl Sync for ParserParsers
impl Unpin for ParserParsers
impl UnwindSafe for ParserParsers
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