diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-12-19 10:29:53 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-19 10:29:53 +0100 |
| commit | bd8862340d8b26b146389ec66441bbd754843b9a (patch) | |
| tree | 739f21a20a0be596ce5c454bd7d3b8c74eef4a84 /src/test/debuginfo/enum-thinlto.rs | |
| parent | eac5fb8b0ab8570b8475545f4378cb35481e9fa6 (diff) | |
| parent | 2fee28e7138d8753487ed8895ce0f5f2e643ffad (diff) | |
| download | rust-bd8862340d8b26b146389ec66441bbd754843b9a.tar.gz rust-bd8862340d8b26b146389ec66441bbd754843b9a.zip | |
Rollup merge of #67270 - alexcrichton:write-more-line-writer, r=sfackler
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
