-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Pre-RFC: Save and load state for Iterator
#2558
Comments
You can use the |
|
|
To give a more helpful answer, if |
If you actually want to abstract In my opinion, the best solution would be
In the short term, |
I don't see any case where |
Closing as per the above comments, this sort of interface does not seem to solve the problem. |
On my project, I recently found a problem that I can't implement a comfortable interface that do operation on
Iterator
directly using existing API.Hence the idea of adding
StateSavableIterator
trait:So that I can:
We don't have to pass
&slice
anymore! This trait benefits to writing more generic and readable API.The text was updated successfully, but these errors were encountered: