fn take_while<F>(&mut self, start: ByteIndex, mut keep_going: F) -> (ByteIndex, &'input str)
    where
        F: FnMut(char) -> bool,
    {
        self.take_until(start, |ch| !keep_going(ch))
    }
/// Consume characters while the predicate matches for the current
/// character, then return the consumed slice and the end byte
/// position.
Consume characters while the predicate matches for the current
character, then return the consumed slice and the end byte
position.
Consume characters while the predicate matches for the current character then return the consumed slice and the end byte position .
fn take_while<F>(&mut self, start: ByteIndex, mut keep_going: F) -> (ByteIndex, &'input str)
    where
        F: FnMut(char) -> bool,
    {
        self.take_until(start, |ch| !keep_going(ch))
    }
fn take_while < F > ( & mut self , start : ByteIndex , mut keep_going : F ) -> ( ByteIndex , & ' input str ) where F : FnMut ( char ) -> bool , { self . take_until ( start , | ch | ! keep_going ( ch ) ) }
Consume characters while the predicate matches for the current
character, then return the consumed slice and the end byte
position.
Consume characters while the predicate matches for the current character then return the consumed slice and the end byte position .
&mut self
start
ByteIndex
keep_going
F
&mut self
start
ByteIndex
keep_going
F