rust/library/std/src
Dylan DPC e9f63fdf86
Rollup merge of #92663 - cuviper:generic-write-cursor, r=dtolnay
Implement `Write for Cursor<[u8; N]>`, plus `A: Allocator` cursor support

This implements `Write for Cursor<[u8; N]>`, and also adds support for generic `A: Allocator` in `Box` and `Vec` cursors.

This was inspired by a user questioning why they couldn't write a `Cursor<[u8; N]>`:
https://users.rust-lang.org/t/why-vec-and-not-u8-makes-cursor-have-write/68210

Related history:
- #27197 switched `AsRef<[u8]>` for reading and seeking
- #67415 tried to use `AsMut<[u8]>` for writing, but did not specialize `Vec`.
2022-03-19 02:02:00 +01:00
..
backtrace Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
collections Rollup merge of #94826 - allgoewer:fix-retain-documentation, r=yaahc 2022-03-11 03:32:06 +01:00
env
error Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
f32 Implement IEEE 754-2019 minimun and maximum functions for f32/f64 2021-11-20 10:14:03 +01:00
f64 Remove fNN::lerp - consensus unlikely 2021-10-25 22:44:41 -05:00
ffi Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
fs Rollup merge of #93283 - m1guelperez:master, r=Mark-Simulacrum 2022-03-11 13:38:36 +01:00
io Rollup merge of #92663 - cuviper:generic-write-cursor, r=dtolnay 2022-03-19 02:02:00 +01:00
lazy
net Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
num
os Rollup merge of #92612 - atopia:update-lib-l4re, r=dtolnay 2022-03-19 02:01:59 +01:00
panic
path Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
prelude update cfg(bootstrap)s 2022-01-28 15:01:07 +01:00
process Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
sync Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
sys Rollup merge of #92612 - atopia:update-lib-l4re, r=dtolnay 2022-03-19 02:01:59 +01:00
sys_common Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
thread Rollup merge of #93950 - T-O-R-U-S:use-modern-formatting-for-format!-macros, r=Mark-Simulacrum 2022-03-10 23:12:57 +01:00
time Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
alloc.rs Auto merge of #88098 - Amanieu:oom_panic, r=nagisa 2022-03-18 03:01:46 +00:00
ascii.rs
backtrace.rs Change Backtrace::enabled atomic from SeqCst to Relaxed 2021-12-20 12:34:10 -08:00
env.rs Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
error.rs Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
f32.rs Remove fNN::lerp - consensus unlikely 2021-10-25 22:44:41 -05:00
f64.rs Remove fNN::lerp - consensus unlikely 2021-10-25 22:44:41 -05:00
fs.rs Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
keyword_docs.rs Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
lazy.rs Add #[must_use] to core and std constructors 2021-10-10 02:44:26 -04:00
lib.rs Rollup merge of #94790 - RalfJung:portable-simd-miri, r=Dylan-DPC 2022-03-10 23:13:01 +01:00
macros.rs Format core and std macro rules, removing needless surrounding blocks 2022-03-11 15:26:51 -08:00
num.rs Add Saturating type (based on Wrapping type) 2021-08-10 19:27:01 +02:00
panic.rs Configure panic hook backtrace behavior 2022-02-02 13:46:42 -05:00
panicking.rs Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
path.rs Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
primitive_docs.rs Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
process.rs Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
rt.rs Change Termination::report return type to ExitCode 2022-01-28 12:53:36 -08:00
time.rs Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00