pub struct Map<A, F>(/* private fields */);
Trait Implementations§
Source§impl<A, F, Input, Output> Parser<Input> for Map<A, F>
impl<A, F, Input, Output> Parser<Input> for Map<A, F>
type Output = Output
type Error = <A as Parser<Input>>::Error
fn parse( &mut self, input: Input, from: usize, ) -> Result<Self::Output, Self::Error>
fn p(self) -> P<Self>where
Self: Sized,
fn by_ref(&mut self) -> P<ByRef<'_, Self>>where
Self: Sized,
fn and<B>(self, b: B) -> P<And<Self, B>>
fn and_skip<B>(self, b: B) -> P<AndSkip<Self, B>>
fn skip_and<B>(self, b: B) -> P<SkipAnd<Self, B>>
fn or<B>(self, b: B) -> P<Or<Self, B>>
fn map<F, Output>(self, f: F) -> P<Map<Self, F>>
fn map_err<F, Error>(self, f: F) -> P<MapErr<Self, F>>
fn and_then<F, Output>(self, f: F) -> P<AndThen<Self, F>>
fn optional(self) -> P<Optional<Self>>where
Self: Sized,
fn bind<B, F>(self, f: F) -> P<Bind<Self, F>>
fn repeat<R>(self, range: R) -> P<Repeat<Self, R>>
impl<A: Copy, F: Copy> Copy for Map<A, F>
impl<A, F> StructuralPartialEq for Map<A, F>
Auto Trait Implementations§
impl<A, F> Freeze for Map<A, F>
impl<A, F> RefUnwindSafe for Map<A, F>where
A: RefUnwindSafe,
F: RefUnwindSafe,
impl<A, F> Send for Map<A, F>
impl<A, F> Sync for Map<A, F>
impl<A, F> Unpin for Map<A, F>
impl<A, F> UnwindSafe for Map<A, F>where
A: UnwindSafe,
F: 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