[−][src]Struct munch::Try
Trait Implementations
impl<A, Input> Parser<Input> for Try<A> where
A: Parser<Input>,
[src]
A: Parser<Input>,
type Output = A::Output
type Error = A::Error
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>
fn p(self) -> P<Self> where
Self: Sized,
[src]
Self: Sized,
fn by_ref(&mut self) -> P<ByRef<Self>> where
Self: Sized,
[src]
Self: Sized,
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>,
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>,
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>,
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>,
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,
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,
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>,
fn optional(self) -> P<Optional<Self>> where
Self: Sized,
[src]
Self: Sized,
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,
fn repeat<R>(self, range: R) -> P<Repeat<Self, R>> where
Self: Sized,
R: Range,
[src]
Self: Sized,
R: Range,
impl<A: Clone> Clone for Try<A>
[src]
impl<A: Copy> Copy for Try<A>
[src]
impl<A: PartialEq> PartialEq<Try<A>> for Try<A>
[src]
impl<A: Debug> Debug for Try<A>
[src]
impl<A> StructuralPartialEq for Try<A>
[src]
Auto Trait Implementations
impl<A> Send for Try<A> where
A: Send,
A: Send,
impl<A> Sync for Try<A> where
A: Sync,
A: Sync,
impl<A> Unpin for Try<A> where
A: Unpin,
A: Unpin,
impl<A> UnwindSafe for Try<A> where
A: UnwindSafe,
A: UnwindSafe,
impl<A> RefUnwindSafe for Try<A> where
A: RefUnwindSafe,
A: RefUnwindSafe,
Blanket Implementations
impl<F, Input, Output, Error> Parser<Input> for F where
F: FnMut(Input, usize) -> Result<(usize, Output), (usize, Error)>,
[src]
F: FnMut(Input, usize) -> Result<(usize, Output), (usize, Error)>,
type Output = Output
type Error = Error
fn parse(
&mut Self,
Input,
usize
) -> Result<(usize, <F as Parser<Input>>::Output), (usize, <F as Parser<Input>>::Error)>
[src]
&mut Self,
Input,
usize
) -> Result<(usize, <F as Parser<Input>>::Output), (usize, <F as Parser<Input>>::Error)>
fn p(self) -> P<Self> where
Self: Sized,
[src]
Self: Sized,
fn by_ref(&mut self) -> P<ByRef<Self>> where
Self: Sized,
[src]
Self: Sized,
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>,
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>,
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>,
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>,
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,
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,
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>,
fn optional(self) -> P<Optional<Self>> where
Self: Sized,
[src]
Self: Sized,
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,
fn repeat<R>(self, range: R) -> P<Repeat<Self, R>> where
Self: Sized,
R: Range,
[src]
Self: Sized,
R: Range,
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.
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 = !
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<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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,