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. |
dtolnay
left a comment
There was a problem hiding this comment.
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-acceptedissues I swear 😛)