rust/library/std/src/io
Thalia Archibald 523b9d9428 Implement default methods for io::Empty and io::Sink
Eliminate any redundant, unobservable logic from the their default
method implementations.

The observable changes are that `Write::write_fmt` for both types now
ignores the formatting arguments, so a user fmt impl which has side
effects is not invoked, and `Write::write_all_vectored` for both types
does not advance the borrowed buffers. Neither behavior is guaranteed by
the docs and the latter is documented as unspecified.

`Empty` is not marked as vectored, so that `Chain<Empty, _>` and
`Chain<_, Empty>` are not forced to be vectored.
2025-03-10 01:38:20 -07:00
..
buffered Fix logic error in Buffer::read_more() 2025-02-28 17:36:19 -08:00
copy Fix testing of the standard library with Emscripten 2025-01-24 09:25:34 +00:00
cursor attempt to optimise vectored write 2022-06-26 17:15:31 +01:00
error library: Use size_of from the prelude instead of imported 2025-03-06 20:20:38 -08:00
impls std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
pipe Test pipes also when not running on Windows and Linux simultaneously 2025-01-26 12:48:33 +01:00
stdio Rustfmt 2025-02-08 22:12:13 +00:00
util Implement default methods for io::Empty and io::Sink 2025-03-10 01:38:20 -07:00
copy.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
cursor.rs Override default Write methods for cursor-like types 2025-02-27 17:09:09 -08:00
error.rs Use correct error message casing for io::const_errors 2025-02-28 17:50:38 +01:00
impls.rs Override default Write methods for cursor-like types 2025-02-27 17:09:09 -08:00
mod.rs Clarify/update comments in BufRead::read_line's default body 2025-02-21 03:56:49 +01:00
pipe.rs Update std::io::{pipe, PipeReader, PipeWriter} docs the new location 2025-01-26 12:42:52 +01:00
prelude.rs Use heading for std::prelude and not io::prelude 2021-01-05 17:52:24 -08:00
stdio.rs Rollup merge of #136798 - pcorwin:master, r=tgross35 2025-03-05 21:46:34 +08:00
tests.rs Move std::io::pipe code into its own file 2025-01-26 12:40:36 +01:00
util.rs Implement default methods for io::Empty and io::Sink 2025-03-10 01:38:20 -07:00