-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
has_next*
methods corresponding to each next*
method
#3
Comments
So the basic algorithm is the same one we use in |
The first thing |
However, we can implement |
The design problem associated with this is that we must be able to look ahead without consuming.
As the current version makes no guarantees about tokens that do not fit in a single input buffer, we can simply examine the buffer itself. In the future, however, it will be necessary to read multiple buffers of information without consuming them.
However,
BufRead.fill_buf()
will happily return the same buffer over and over again if you do notconsume
in between.The text was updated successfully, but these errors were encountered: