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