diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-03-19 02:02:00 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-19 02:02:00 +0100 |
| commit | e9f63fdf86de2a515da26bb905c1470e6363caf3 (patch) | |
| tree | 48775cea983a7eaa28dabbeea0148b924bd23459 /library/std/src/io/stdio.rs | |
| parent | a87590e34e18646aee82771471649761d9acf02f (diff) | |
| parent | 7d44316bcf3fbe220412589f08befb3116328b21 (diff) | |
| download | rust-e9f63fdf86de2a515da26bb905c1470e6363caf3.tar.gz rust-e9f63fdf86de2a515da26bb905c1470e6363caf3.zip | |
Rollup merge of #92663 - cuviper:generic-write-cursor, r=dtolnay
Implement `Write for Cursor<[u8; N]>`, plus `A: Allocator` cursor support This implements `Write for Cursor<[u8; N]>`, and also adds support for generic `A: Allocator` in `Box` and `Vec` cursors. This was inspired by a user questioning why they couldn't write a `Cursor<[u8; N]>`: https://users.rust-lang.org/t/why-vec-and-not-u8-makes-cursor-have-write/68210 Related history: - #27197 switched `AsRef<[u8]>` for reading and seeking - #67415 tried to use `AsMut<[u8]>` for writing, but did not specialize `Vec`.
Diffstat (limited to 'library/std/src/io/stdio.rs')
0 files changed, 0 insertions, 0 deletions
