pub struct TakeWhile<F>(pub F)
where
F: FnMut(u8) -> bool;Tuple Fields§
§0: FTrait Implementations§
Source§impl<'a, F, Input> Parser<&'a Input> for TakeWhile<F>
impl<'a, F, Input> Parser<&'a Input> for TakeWhile<F>
type Output = &'a str
type Error = Error<'static>
fn parse( &mut self, input: &'a Input, from: usize, ) -> Result<Self::Output, Self::Error>
fn p(self) -> P<Self>where
Self: Sized,
fn by_ref(&mut self) -> P<ByRef<'_, Self>>where
Self: Sized,
fn and<B>(self, b: B) -> P<And<Self, B>>
fn and_skip<B>(self, b: B) -> P<AndSkip<Self, B>>
fn skip_and<B>(self, b: B) -> P<SkipAnd<Self, B>>
fn or<B>(self, b: B) -> P<Or<Self, B>>
fn map<F, Output>(self, f: F) -> P<Map<Self, F>>
fn map_err<F, Error>(self, f: F) -> P<MapErr<Self, F>>
fn and_then<F, Output>(self, f: F) -> P<AndThen<Self, F>>
fn optional(self) -> P<Optional<Self>>where
Self: Sized,
fn bind<B, F>(self, f: F) -> P<Bind<Self, F>>
fn repeat<R>(self, range: R) -> P<Repeat<Self, R>>
impl<F> Copy for TakeWhile<F>
impl<F> StructuralPartialEq for TakeWhile<F>
Auto Trait Implementations§
impl<F> Freeze for TakeWhile<F>where
F: Freeze,
impl<F> RefUnwindSafe for TakeWhile<F>where
F: RefUnwindSafe,
impl<F> Send for TakeWhile<F>where
F: Send,
impl<F> Sync for TakeWhile<F>where
F: Sync,
impl<F> Unpin for TakeWhile<F>where
F: Unpin,
impl<F> UnsafeUnpin for TakeWhile<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for TakeWhile<F>where
F: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more