rust/src/libstd
Dylan DPC c4d9f42f6d
Rollup merge of #67841 - sfackler:can-vector, r=Amaneiu
Add Read/Write::can_read/write_vectored

When working with an arbitrary reader or writer, code that uses vectored
operations may end up being slower than code that copies into a single
buffer when the underlying reader or writer doesn't actually support
vectored operations. These new methods allow you to ask the reader or
witer up front if vectored operations are efficiently supported.

Currently, you have to use some heuristics to guess by e.g. checking if
the read or write only accessed the first buffer. Hyper is one concrete
example of a library that has to do this dynamically:
0eaf304644/src/proto/h1/io.rs (L582-L594)
2020-04-27 22:14:55 +02:00
..
benches Format libstd with rustfmt 2019-11-29 18:43:27 -08:00
collections More diagnostic items for Clippy usage 2020-04-22 07:57:56 +02:00
ffi big-O notation: parenthesis, multiplication and backticks 2020-04-15 14:33:45 +02:00
io Suppress file length check temporarily 2020-04-26 04:48:51 -07:00
net Update name 2020-04-26 04:24:16 -07:00
os Add illumos triple 2020-04-14 20:36:07 +00:00
prelude Bump bootstrap compiler 2020-04-25 09:25:33 -04:00
sync fix more clippy warnings 2020-04-26 02:24:01 +02:00
sys fix wasi 2020-04-27 04:50:03 -07:00
sys_common Update name 2020-04-26 04:24:16 -07:00
tests stdarch: update submodule. 2020-02-01 22:04:18 -05:00
thread Rollup merge of #71256 - cuviper:must_use_replace, r=estebank 2020-04-22 23:19:19 +02:00
alloc.rs Minor follow-up after renaming librustc(_middle) 2020-04-03 19:03:13 +09:00
ascii.rs Bump rustfmt to most recently shipped 2020-04-25 09:25:33 -04:00
backtrace.rs remove redundant returns (clippy::needless_return) 2020-03-20 20:23:03 +01:00
build.rs Add illumos triple 2020-04-14 20:36:07 +00:00
Cargo.toml Make panic-unwind a default feature for libstd 2020-04-11 17:49:16 -04:00
env.rs doc: Add quote to .init_array 2020-03-19 17:35:28 +07:00
error.rs Overhaul of the AllocRef trait to match allocator-wg's latest consens 2020-03-26 17:10:54 +01:00
f32.rs Use assoc float consts instead of module level 2020-04-20 23:38:06 +02:00
f64.rs Use assoc float consts instead of module level 2020-04-20 23:38:06 +02:00
fs.rs Update name 2020-04-26 04:24:16 -07:00
future.rs Bump bootstrap compiler 2020-04-25 09:25:33 -04:00
keyword_docs.rs Fix typos in docs for keyword "in" 2020-04-24 14:13:43 -07:00
lib.rs Add Read/Write::can_read/write_vectored 2020-04-26 04:23:39 -07:00
macros.rs Update macros.rs: fix documentation typo. 2020-03-04 14:18:31 -05:00
memchr.rs libstd => 2018 2019-02-28 04:06:15 +09:00
num.rs Format libstd with rustfmt 2019-11-29 18:43:27 -08:00
panic.rs Require issue = "none" over issue = "0" in unstable attributes 2019-12-21 13:16:18 +02:00
panicking.rs Bump bootstrap compiler 2020-04-25 09:25:33 -04:00
path.rs Stabilize PathBuf capacity methods 2020-04-19 21:49:27 -04:00
primitive_docs.rs Do not use "nil" to refer to () 2020-04-05 14:30:13 +02:00
process.rs Update name 2020-04-26 04:24:16 -07:00
rt.rs Require issue = "none" over issue = "0" in unstable attributes 2019-12-21 13:16:18 +02:00
time.rs correct comment to match behavior 2020-02-29 08:40:09 -05:00