-
Notifications
You must be signed in to change notification settings - Fork 984
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
QueueWriteBufferView
is strange.
#3134
Comments
Sadly there is no nice way to express this in rust since it's always valid to reborrow a |
@teoxoy There's no reason why it needs to implement |
Whatever interface is used, it would have to return an |
@kpreid Is the idea that there might be a method that modifies a |
Yes.
It might be but there was precedent to go this route. It was done to discourage reading since it will be slow to do so. Thread on the PR where this was discussed previously: #2777 (comment) |
What was the precedent? I get that it's slow, but is it really worth it to crash on an implicit dereference? Especially when the docs for |
That's fair, I just think we should also change |
I could probably implement that, at least for the
|
According to the documentation for
Queue::write_buffer_with
:According to the documentation for
Deref
:The text was updated successfully, but these errors were encountered: