diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2019-12-12 16:47:42 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2019-12-12 16:51:25 -0800 |
| commit | 2fee28e7138d8753487ed8895ce0f5f2e643ffad (patch) | |
| tree | ee10ae4040b5ac9c602e070c3a61dbd607c75f38 /src/test/debuginfo/enum-thinlto.rs | |
| parent | e9469a6aec2f49fa1e2ae670649f293866932253 (diff) | |
| download | rust-2fee28e7138d8753487ed8895ce0f5f2e643ffad.tar.gz rust-2fee28e7138d8753487ed8895ce0f5f2e643ffad.zip | |
std: Implement `LineWriter::write_vectored`
This commit implements the `write_vectored` method of the `LineWriter` type. First discovered in bytecodealliance/wasmtime#629 the `write_vectored` method of `Stdout` bottoms out here but only ends up writing the first buffer due to the default implementation of `write_vectored`. Like `BufWriter`, however, `LineWriter` can have a non-default implementation of `write_vectored` which tries to preserve the vectored-ness as much as possible. Namely we can have a vectored write for everything before the newline and everything after the newline if all the stars align well. Also like `BufWriter`, though, special care is taken to ensure that whenever bytes are written we're sure to signal success since that represents a "commit" of writing bytes.
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions
