pub fn lex_eof(reader: &mut impl Reader) -> bool {
    if let ReaderResult::Match(whitespace) = reader.direct_peek(&*EMPTY_RE) {
        debug_assert!(whitespace.len() <= reader.remaining_len());
        if whitespace.len() == reader.remaining_len() {
            // End of files has been reached (the rest is all whitespace)
            return true;
        }
    }
    false
}
/// Check whether the end of files has been reached (true if EOF).
Check whether the end of files has been reached (true if EOF).
Check whether the end of files has been reached ( true if EOF ) .
pub fn lex_eof(reader: &mut impl Reader) -> bool {
    if let ReaderResult::Match(whitespace) = reader.direct_peek(&*EMPTY_RE) {
        debug_assert!(whitespace.len() <= reader.remaining_len());
        if whitespace.len() == reader.remaining_len() {
            // End of files has been reached (the rest is all whitespace)
            return true;
        }
    }
    false
}
pub fn lex_eof ( reader : & mut impl Reader ) -> bool { if let ReaderResult :: Match ( whitespace ) = reader . direct_peek ( & * EMPTY_RE ) { debug_assert ! ( whitespace len ( ) reader remaining_len ( ) ) ; if whitespace . len ( ) == reader . remaining_len ( ) { // End of files has been reached (the rest is all whitespace) return true ; } } false }
Check whether the end of files has been reached (true if EOF).
Check whether the end of files has been reached ( true if EOF ) .
reader
&mut impl Reader
reader
&mut impl Reader