fn take_until<F>(&mut self, start: ByteIndex, mut terminate: F) -> (ByteIndex, &'input str)
    where
        F: FnMut(char) -> bool,
    {
        while let Some((end, ch)) = self.lookahead() {
            if terminate(ch) {
                return (end, self.slice(start, end));
            } else {
                self.bump();
            }
        }

        let eof = self.filemap.span().end();
        (eof, self.slice(start, eof))
    }
/// Consume characters until the predicate matches for the next character
/// in the lookahead, then return the consumed slice and the end byte
/// position.
Consume characters until the predicate matches for the next character
in the lookahead, then return the consumed slice and the end byte
position.
Consume characters until the predicate matches for the next character in the lookahead then return the consumed slice and the end byte position .
fn take_until<F>(&mut self, start: ByteIndex, mut terminate: F) -> (ByteIndex, &'input str)
    where
        F: FnMut(char) -> bool,
    {
        while let Some((end, ch)) = self.lookahead() {
            if terminate(ch) {
                return (end, self.slice(start, end));
            } else {
                self.bump();
            }
        }
        let eof = self.filemap.span().end();
        (eof, self.slice(start, eof))
    }
fn take_until < F > ( & mut self , start : ByteIndex , mut terminate : F ) -> ( ByteIndex , & ' input str ) where F : FnMut ( char ) -> bool , { while let Some ( ( end , ch ) ) = self . lookahead ( ) { if terminate ( ch ) { return ( end , self . slice ( start , end ) ) ; } else { self . bump ( ) ; } } let eof = self . filemap . span ( ) . end ( ) ; ( eof , self . slice ( start , eof ) ) }
Consume characters until the predicate matches for the next character
in the lookahead, then return the consumed slice and the end byte
position.
Consume characters until the predicate matches for the next character in the lookahead then return the consumed slice and the end byte position .
&mut self
start
ByteIndex
terminate
F
&mut self
start
ByteIndex
terminate
F