-
Notifications
You must be signed in to change notification settings - Fork 172
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
Prototype a new Buffer
trait.
#1290
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we go with this approach, I feel like there's a pretty good chance compiler folks will improve the error messages for us if we file bug reports. The story around passing in a mutable array but needing a slice instead has annoyed me for quite some time (I usually just as_mut_slice
everything). It was pretty confusing to figure out initially, so I'm sure better error messages would be welcome.
2b47fd2
to
e455b94
Compare
e455b94
to
cce9330
Compare
I'm experimenting with a `Buffer` trait similar to #908, however I've run into a few problems. See the questions in examples/new_read.rs for details.
`Extend` now returns a `usize` to make it easier to test for end-of-stream.
8b4cee0
to
f2eaa94
Compare
f2eaa94
to
2278976
Compare
Looking at our APIs, I think we'd want to consider adding uninit methods to roughly these methods (the filtering is not great, sorry): |
I'm experimenting with a
Buffer
trait similar to #908, however I've run into a few problems. See the questions in examples/new_read.rs for details.@notgull @SUPERCILEX