[−][src]Struct munch::Guard
Trait Implementations
impl<F, E, Input, Error> Parser<Input> for Guard<F, E> where
F: FnMut() -> bool,
E: FnMut() -> Error,
[src]
F: FnMut() -> bool,
E: FnMut() -> Error,
type Output = ()
type Error = 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<F: Clone, E: Clone> Clone for Guard<F, E>
[src]
impl<F: Copy, E: Copy> Copy for Guard<F, E>
[src]
impl<F: PartialEq, E: PartialEq> PartialEq<Guard<F, E>> for Guard<F, E>
[src]
impl<F: Debug, E: Debug> Debug for Guard<F, E>
[src]
impl<F, E> StructuralPartialEq for Guard<F, E>
[src]
Auto Trait Implementations
impl<F, E> Send for Guard<F, E> where
E: Send,
F: Send,
E: Send,
F: Send,
impl<F, E> Sync for Guard<F, E> where
E: Sync,
F: Sync,
E: Sync,
F: Sync,
impl<F, E> Unpin for Guard<F, E> where
E: Unpin,
F: Unpin,
E: Unpin,
F: Unpin,
impl<F, E> UnwindSafe for Guard<F, E> where
E: UnwindSafe,
F: UnwindSafe,
E: UnwindSafe,
F: UnwindSafe,
impl<F, E> RefUnwindSafe for Guard<F, E> where
E: RefUnwindSafe,
F: RefUnwindSafe,
E: RefUnwindSafe,
F: 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,