[−][src]Struct munch::MapErr
Trait Implementations
impl<A: Clone, F: Clone> Clone for MapErr<A, F>
[src]
impl<A: Copy, F: Copy> Copy for MapErr<A, F>
[src]
impl<A: Debug, F: Debug> Debug for MapErr<A, F>
[src]
impl<A, F, Input, Error> Parser<Input> for MapErr<A, F> where
A: Parser<Input>,
F: FnMut(A::Error) -> Error,
[src]
A: Parser<Input>,
F: FnMut(A::Error) -> Error,
type Output = A::Output
type Error = Error
pub fn parse(
&mut self,
input: Input,
from: usize
) -> Result<Self::Output, Self::Error>
[src]
&mut self,
input: Input,
from: usize
) -> Result<Self::Output, Self::Error>
pub fn p(self) -> P<Self> where
Self: Sized,
[src]
Self: Sized,
pub fn by_ref(&mut self) -> P<ByRef<'_, Self>> where
Self: Sized,
[src]
Self: Sized,
pub fn and<B>(self, b: B) -> P<And<Self, B>> where
Self: Sized,
B: Parser<Input, Error = Self::Error>,
[src]
Self: Sized,
B: Parser<Input, Error = Self::Error>,
pub fn and_skip<B>(self, b: B) -> P<AndSkip<Self, B>> where
Self: Sized,
B: Parser<Input, Error = Self::Error>,
[src]
Self: Sized,
B: Parser<Input, Error = Self::Error>,
pub fn skip_and<B>(self, b: B) -> P<SkipAnd<Self, B>> where
Self: Sized,
B: Parser<Input, Error = Self::Error>,
[src]
Self: Sized,
B: Parser<Input, Error = Self::Error>,
pub fn or<B>(self, b: B) -> P<Or<Self, B>> where
Self: Sized,
B: Parser<Input, Output = Self::Output, Error = Self::Error>,
[src]
Self: Sized,
B: Parser<Input, Output = Self::Output, Error = Self::Error>,
pub fn map<F, Output>(self, f: F) -> P<Map<Self, F>> where
Self: Sized,
F: FnMut(Self::Output) -> Output,
[src]
Self: Sized,
F: FnMut(Self::Output) -> Output,
pub fn map_err<F, Error>(self, f: F) -> P<MapErr<Self, F>> where
Self: Sized,
F: FnMut(Self::Error) -> Error,
[src]
Self: Sized,
F: FnMut(Self::Error) -> Error,
pub fn and_then<F, Output>(self, f: F) -> P<AndThen<Self, F>> where
Self: Sized,
F: FnMut(Self::Output) -> Result<Output, Self::Error>,
[src]
Self: Sized,
F: FnMut(Self::Output) -> Result<Output, Self::Error>,
pub fn optional(self) -> P<Optional<Self>> where
Self: Sized,
[src]
Self: Sized,
pub fn bind<B, F>(self, f: F) -> P<Bind<Self, F>> where
Self: Sized,
B: Parser<Input, Error = Self::Error>,
F: FnMut(Self::Output) -> B,
[src]
Self: Sized,
B: Parser<Input, Error = Self::Error>,
F: FnMut(Self::Output) -> B,
pub fn repeat<R>(self, range: R) -> P<Repeat<Self, R>> where
Self: Sized,
R: Range,
[src]
Self: Sized,
R: Range,
impl<A: PartialEq, F: PartialEq> PartialEq<MapErr<A, F>> for MapErr<A, F>
[src]
pub fn eq(&self, other: &MapErr<A, F>) -> bool
[src]
pub fn ne(&self, other: &MapErr<A, F>) -> bool
[src]
impl<A, F> StructuralPartialEq for MapErr<A, F>
[src]
Auto Trait Implementations
impl<A, F> RefUnwindSafe for MapErr<A, F> where
A: RefUnwindSafe,
F: RefUnwindSafe,
A: RefUnwindSafe,
F: RefUnwindSafe,
impl<A, F> Send for MapErr<A, F> where
A: Send,
F: Send,
A: Send,
F: Send,
impl<A, F> Sync for MapErr<A, F> where
A: Sync,
F: Sync,
A: Sync,
F: Sync,
impl<A, F> Unpin for MapErr<A, F> where
A: Unpin,
F: Unpin,
A: Unpin,
F: Unpin,
impl<A, F> UnwindSafe for MapErr<A, F> where
A: UnwindSafe,
F: UnwindSafe,
A: UnwindSafe,
F: 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,
pub 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<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,