fn read_whitespace<Chars: Iterator<Item=char>>(buffer: &mut TokenReadBuffer<Chars>, location: FileLocation) -> (Token, String, FileLocation) {
    loop {
        let next_char = buffer.read_next();

        match next_char {
            Some(' ')       |
            Some('\t')      |
            Some('\n')      |
            Some('\r')      => {},
            None            => break,
            _               => {
                buffer.push_back();
                break;
            }
        }
    }

    (Token::Whitespace, buffer.read_characters(), buffer.update_location(location))
}
///
/// After reading a whitespace character, reads the remainder of the whitespace
///
After reading a whitespace character, reads the remainder of the whitespace
After reading a whitespace character reads the remainder of the whitespace
fn read_whitespace<Chars: Iterator<Item=char>>(buffer: &mut TokenReadBuffer<Chars>, location: FileLocation) -> (Token, String, FileLocation) {
    loop {
        let next_char = buffer.read_next();
        match next_char {
            Some(' ')       |
            Some('\t')      |
            Some('\n')      |
            Some('\r')      => {},
            None            => break,
            _               => {
                buffer.push_back();
                break;
            }
        }
    }
    (Token::Whitespace, buffer.read_characters(), buffer.update_location(location))
}
fn read_whitespace < Chars : Iterator < Item = char > > ( buffer : & mut TokenReadBuffer < Chars > , location : FileLocation ) -> ( Token , String , FileLocation ) { loop { let next_char = buffer . read_next ( ) ; match next_char { Some ( ' ' ) | Some ( '\t' ) | Some ( '\n' ) | Some ( '\r' ) => { } , None => break , _ => { buffer . push_back ( ) ; break ; } } } ( Token :: Whitespace , buffer . read_characters ( ) , buffer . update_location ( location ) ) }
After reading a whitespace character, reads the remainder of the whitespace
After reading a whitespace character reads the remainder of the whitespace
buffer
&mut TokenReadBuffer<Chars>
location
FileLocation
buffer
&mut TokenReadBuffer<Chars>
location
FileLocation