Files
rust/src/libstd/io
Alex Crichton 2fee28e713 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.
2019-12-12 16:51:25 -08:00
..
2019-11-29 18:43:27 -08:00
2019-11-29 18:43:27 -08:00
2019-02-28 04:06:15 +09:00
2019-11-29 18:43:27 -08:00
2019-10-20 23:13:41 +02:00
2019-11-29 18:43:27 -08:00