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
Implementation of Buf for VecDeque #249
Conversation
Since it can be easily re-filled.
Ah, I haven't read the comment on #248 yet… ok. |
The primary reason I am not a huge fan of implementing |
BTW, if you release a crate, I'd be happy to include a section in the README that links to additional implementations of Buf / BufMut. |
Isn't the different ranges somewhat a problem of Hmm, it seems it isn't reasonably possible to implement I'll keep the offer with readme in mind, but considering the above, I'll have to think if I even want to create the crate. It might still work in the use case I described, though, even without that ability. |
You are probably right about the inconsistency. I guess the question should be if it is reasonable for single types to impl both Buf and BufMut such that data is read from the front and written to the back. |
Cc @seanmonstar |
@vorner I'll re-open. I think you are probably right. |
@vorner Ok, this looks good. Do you want to add a |
Probably as it is. As I said, I don't see a way to implement Anyway, if this is becomes a problem or too much work when going to the 0.5, it's always possible to drop the support or you can ask me to port it. I'm not really a good maintainer of stuff, but I should at least be able to take care of what I wrote. |
Since it can be easily re-filled.
I'll think about how (if possible) to implement BufMut too.
Related to #248.