[−][src]Struct parser_fuck::combinators::Map
Map a Parser<Output = T> to Parser<Output = U> by applying a function to a contained value
Methods
impl<B: Parser<I>, I: TimeTravel, U, F> Map<B, I, F> where
F: FnMut(B::Output) -> U, [src]
F: FnMut(B::Output) -> U,
Trait Implementations
impl<B: Clone + Parser<I>, I: Clone + TimeTravel, F: Clone> Clone for Map<B, I, F>[src]
impl<B: Debug + Parser<I>, I: Debug + TimeTravel, F: Debug> Debug for Map<B, I, F>[src]
impl<B: Eq + Parser<I>, I: Eq + TimeTravel, F: Eq> Eq for Map<B, I, F>[src]
impl<B: Parser<I>, I: TimeTravel, U, F> Parser<I> for Map<B, I, F> where
F: FnMut(B::Output) -> U, [src]
F: FnMut(B::Output) -> U,
type Output = U
fn parse(&self, input: I) -> Option<Self::Output>[src]
fn map<U, F>(self, f: F) -> Map<Self, I, F> where
Self: Sized,
F: FnMut(Self::Output) -> U, [src]
Self: Sized,
F: FnMut(Self::Output) -> U,
fn and<B>(self, b: B) -> And<Self, B, I> where
Self: Sized,
B: Parser<I>, [src]
Self: Sized,
B: Parser<I>,
fn or<B>(self, b: B) -> Or<Self, B, I> where
Self: Sized,
B: Parser<I, Output = Self::Output>, [src]
Self: Sized,
B: Parser<I, Output = Self::Output>,
fn not(self) -> Not<Self, I> where
Self: Sized, [src]
Self: Sized,
fn many(self) -> Many<Self, I> where
Self: Sized, [src]
Self: Sized,
fn many1(self) -> Many<Self, I> where
Self: Sized, [src]
Self: Sized,
fn many_min(self, min: usize) -> Many<Self, I> where
Self: Sized, [src]
Self: Sized,
fn many_max(self, max: usize) -> Many<Self, I> where
Self: Sized, [src]
Self: Sized,
fn many1_max(self, max: usize) -> Many<Self, I> where
Self: Sized, [src]
Self: Sized,
fn many_min_max(self, min: usize, max: usize) -> Many<Self, I> where
Self: Sized, [src]
Self: Sized,
fn some(self, count: usize) -> Many<Self, I> where
Self: Sized, [src]
Self: Sized,
fn may(self) -> May<Self, I> where
Self: Sized, [src]
Self: Sized,
fn iter(self) -> Iter<Self, I> where
Self: Sized, [src]
Self: Sized,
fn and_then<U, F>(self, f: F) -> AndThen<Self, I, F> where
Self: Sized,
U: Parser<I>,
F: FnMut(Self::Output) -> U, [src]
Self: Sized,
U: Parser<I>,
F: FnMut(Self::Output) -> U,
fn or_else<U, F>(self, f: F) -> OrElse<Self, I, F> where
Self: Sized,
U: Parser<I, Output = Self::Output>,
F: FnMut() -> U, [src]
Self: Sized,
U: Parser<I, Output = Self::Output>,
F: FnMut() -> U,
fn or_trans<F>(self, f: F) -> OrTrans<Self, I, F> where
Self: Sized,
F: FnMut(I, Range<usize>) -> Self::Output, [src]
Self: Sized,
F: FnMut(I, Range<usize>) -> Self::Output,
fn or_trans_noend<F>(self, f: F) -> OrTrans<Self, I, F> where
Self: Sized,
F: FnMut(I, Range<usize>) -> Self::Output, [src]
Self: Sized,
F: FnMut(I, Range<usize>) -> Self::Output,
fn dyns(self) -> Dyn<I, Self::Output> where
Self: Sized + 'static, [src]
Self: Sized + 'static,
impl<B: PartialEq + Parser<I>, I: PartialEq + TimeTravel, F: PartialEq> PartialEq<Map<B, I, F>> for Map<B, I, F>[src]
impl<B: Parser<I>, I: TimeTravel, F> StructuralEq for Map<B, I, F>[src]
impl<B: Parser<I>, I: TimeTravel, F> StructuralPartialEq for Map<B, I, F>[src]
Auto Trait Implementations
impl<B, I, F> !RefUnwindSafe for Map<B, I, F>
impl<B, I, F> Send for Map<B, I, F> where
B: Send,
F: Send,
I: Send,
B: Send,
F: Send,
I: Send,
impl<B, I, F> !Sync for Map<B, I, F>
impl<B, I, F> Unpin for Map<B, I, F> where
B: Unpin,
F: Unpin,
I: Unpin,
B: Unpin,
F: Unpin,
I: Unpin,
impl<B, I, F> UnwindSafe for Map<B, I, F> where
B: UnwindSafe,
F: UnwindSafe,
I: UnwindSafe,
B: UnwindSafe,
F: UnwindSafe,
I: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<I, U, F> Parser<I> for F where
F: Fn(I) -> Option<U>,
I: TimeTravel, [src]
F: Fn(I) -> Option<U>,
I: TimeTravel,
type Output = U
fn parse(&Self, I) -> Option<<F as Parser<I>>::Output>[src]
fn map<U, F>(self, f: F) -> Map<Self, I, F> where
Self: Sized,
F: FnMut(Self::Output) -> U, [src]
Self: Sized,
F: FnMut(Self::Output) -> U,
fn and<B>(self, b: B) -> And<Self, B, I> where
Self: Sized,
B: Parser<I>, [src]
Self: Sized,
B: Parser<I>,
fn or<B>(self, b: B) -> Or<Self, B, I> where
Self: Sized,
B: Parser<I, Output = Self::Output>, [src]
Self: Sized,
B: Parser<I, Output = Self::Output>,
fn not(self) -> Not<Self, I> where
Self: Sized, [src]
Self: Sized,
fn many(self) -> Many<Self, I> where
Self: Sized, [src]
Self: Sized,
fn many1(self) -> Many<Self, I> where
Self: Sized, [src]
Self: Sized,
fn many_min(self, min: usize) -> Many<Self, I> where
Self: Sized, [src]
Self: Sized,
fn many_max(self, max: usize) -> Many<Self, I> where
Self: Sized, [src]
Self: Sized,
fn many1_max(self, max: usize) -> Many<Self, I> where
Self: Sized, [src]
Self: Sized,
fn many_min_max(self, min: usize, max: usize) -> Many<Self, I> where
Self: Sized, [src]
Self: Sized,
fn some(self, count: usize) -> Many<Self, I> where
Self: Sized, [src]
Self: Sized,
fn may(self) -> May<Self, I> where
Self: Sized, [src]
Self: Sized,
fn iter(self) -> Iter<Self, I> where
Self: Sized, [src]
Self: Sized,
fn and_then<U, F>(self, f: F) -> AndThen<Self, I, F> where
Self: Sized,
U: Parser<I>,
F: FnMut(Self::Output) -> U, [src]
Self: Sized,
U: Parser<I>,
F: FnMut(Self::Output) -> U,
fn or_else<U, F>(self, f: F) -> OrElse<Self, I, F> where
Self: Sized,
U: Parser<I, Output = Self::Output>,
F: FnMut() -> U, [src]
Self: Sized,
U: Parser<I, Output = Self::Output>,
F: FnMut() -> U,
fn or_trans<F>(self, f: F) -> OrTrans<Self, I, F> where
Self: Sized,
F: FnMut(I, Range<usize>) -> Self::Output, [src]
Self: Sized,
F: FnMut(I, Range<usize>) -> Self::Output,
fn or_trans_noend<F>(self, f: F) -> OrTrans<Self, I, F> where
Self: Sized,
F: FnMut(I, Range<usize>) -> Self::Output, [src]
Self: Sized,
F: FnMut(I, Range<usize>) -> Self::Output,
fn dyns(self) -> Dyn<I, Self::Output> where
Self: Sized + 'static, [src]
Self: Sized + 'static,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,