diff options
| author | Evan Richter <evanjrichter@gmail.com> | 2022-05-17 00:53:06 -0500 |
|---|---|---|
| committer | Evan Richter <evanjrichter@gmail.com> | 2022-05-19 14:59:42 -0500 |
| commit | 8b7a3f4d53f9e96a49d77ed42d22baf4d7743b94 (patch) | |
| tree | c98fb05a1e24f82a7bb483a0d84a15dddbe40cc2 /compiler/rustc_mir_transform/src/coverage/debug.rs | |
| parent | 596deceaac224b9bb4f7e65e2e37d4e2e242d6ad (diff) | |
| download | rust-8b7a3f4d53f9e96a49d77ed42d22baf4d7743b94.tar.gz rust-8b7a3f4d53f9e96a49d77ed42d22baf4d7743b94.zip | |
impl Read and Write for VecDeque<u8>
* For read and read_buf, only the front slice of a discontiguous VecDeque is copied. The VecDeque is advanced after reading, making any back slice available for reading with a second call to Read::read(_buf). * For write, the VecDeque always appends the entire slice to the end, growing its allocation when necessary.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions
