pub struct ParseWhile<Input: PrintError, Predicate: Fn(&Input) -> bool>(/* private fields */);Expand description
Continue parsing while a predicate holds. Return a contiguous slice referencing the section of input that held.
Trait Implementations§
Source§impl<Input: Debug + PrintError, Predicate: Debug + Fn(&Input) -> bool> Debug for ParseWhile<Input, Predicate>
impl<Input: Debug + PrintError, Predicate: Debug + Fn(&Input) -> bool> Debug for ParseWhile<Input, Predicate>
Auto Trait Implementations§
impl<Input, Predicate> Freeze for ParseWhile<Input, Predicate>where
Predicate: Freeze,
impl<Input, Predicate> RefUnwindSafe for ParseWhile<Input, Predicate>where
Predicate: RefUnwindSafe,
Input: RefUnwindSafe,
impl<Input, Predicate> Send for ParseWhile<Input, Predicate>
impl<Input, Predicate> Sync for ParseWhile<Input, Predicate>
impl<Input, Predicate> Unpin for ParseWhile<Input, Predicate>
impl<Input, Predicate> UnwindSafe for ParseWhile<Input, Predicate>where
Predicate: UnwindSafe,
Input: 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