[−][src]Struct munch::str::TakeWhile
Trait Implementations
impl<F: Clone> Clone for TakeWhile<F> where
F: FnMut(char) -> bool,
[src]
F: FnMut(char) -> bool,
impl<F: Copy> Copy for TakeWhile<F> where
F: FnMut(char) -> bool,
[src]
F: FnMut(char) -> bool,
impl<F: Debug> Debug for TakeWhile<F> where
F: FnMut(char) -> bool,
[src]
F: FnMut(char) -> bool,
impl<'a, F> Parser<&'a str> for TakeWhile<F> where
F: FnMut(char) -> bool,
[src]
F: FnMut(char) -> bool,
type Output = &'a str
type Error = Error<'static>
pub fn parse(
&mut self,
input: &'a str,
from: usize
) -> Result<Self::Output, Self::Error>
[src]
&mut self,
input: &'a str,
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> PartialEq<TakeWhile<F>> for TakeWhile<F> where
F: FnMut(char) -> bool,
[src]
F: FnMut(char) -> bool,
pub fn eq(&self, other: &TakeWhile<F>) -> bool
[src]
pub fn ne(&self, other: &TakeWhile<F>) -> bool
[src]
impl<F> StructuralPartialEq for TakeWhile<F> where
F: FnMut(char) -> bool,
[src]
F: FnMut(char) -> bool,
Auto Trait Implementations
impl<F> RefUnwindSafe for TakeWhile<F> where
F: RefUnwindSafe,
F: RefUnwindSafe,
impl<F> Send for TakeWhile<F> where
F: Send,
F: Send,
impl<F> Sync for TakeWhile<F> where
F: Sync,
F: Sync,
impl<F> Unpin for TakeWhile<F> where
F: Unpin,
F: Unpin,
impl<F> UnwindSafe for TakeWhile<F> where
F: 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>,