-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Implement Write
for Cursor<&mut Vec<u8>>
#46830
Conversation
Thanks for the PR! We’ll periodically check in on it to make sure that @dtolnay or someone else from the team reviews it soon. |
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.
Thanks! The implementation looks good to me. Let's run it by the rest of the libs team though.
@rust-lang/libs this adds the following impl. This is important for being able to write to a Vec owned by a Mutex or similar. impl<'a> Write for Cursor<&'a mut Vec<u8>> @rfcbot fcp merge |
Team member @dtolnay has proposed to merge this. The next step is review by the rest of the tagged teams: No concerns currently listed. Once these reviewers reach consensus, this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
1 similar comment
🔔 This is now entering its final comment period, as per the review above. 🔔 |
@bors: r+ |
📌 Commit 77b3090 has been approved by |
☀️ Test successful - status-appveyor, status-travis |
Thank you @Diggsey ! |
We might want to tweak the title here to replace |
Write
for Cursor<&mut Vec<T>>
Write
for Cursor<&mut Vec<u8>>
Should we mention the behavior of resize in the document? (otherwise one might not sure if
I'd like to provide File-like in-memory buffer to some API accept |
Fixes #30132
r? @dtolnay (I'm just going through
feature-accepted
issues I swear 😛)