rust/library
Frank King 97c953f561 Add Iterator::map_windows
This is inherited from the old PR.

This method returns an iterator over mapped windows of the starting
iterator. Adding the more straight-forward `Iterator::windows` is not
easily possible right now as the items are stored in the iterator type,
meaning the `next` call would return references to `self`. This is not
allowed by the current `Iterator` trait design. This might change once
GATs have landed.

The idea has been brought up by @m-ou-se here:
https://rust-lang.zulipchat.com/#narrow/stream/219381-t-libs/topic/Iterator.3A.3A.7Bpairwise.2C.20windows.7D/near/224587771

Co-authored-by: Lukas Kalbertodt <lukas.kalbertodt@gmail.com>
2023-08-11 07:26:51 +08:00
..
alloc Rollup merge of #114365 - tshepang:patch-6, r=Mark-Simulacrum 2023-08-07 05:29:12 +02:00
backtrace@e1c49fbd61 Update std to backtrace 0.3.68 2023-07-02 17:02:45 -07:00
core Add Iterator::map_windows 2023-08-11 07:26:51 +08:00
panic_abort Add internal_features lint 2023-08-03 14:50:50 +02:00
panic_unwind stabilize abi_thiscall 2023-08-07 14:11:03 +02:00
portable-simd remove repetitive words 2023-07-31 16:13:02 +08:00
proc_macro Add internal_features lint 2023-08-03 14:50:50 +02:00
profiler_builtins Add internal_features lint 2023-08-03 14:50:50 +02:00
rtstartup
rustc-std-workspace-alloc Replace libstd, libcore, liballoc in line comments. 2022-12-30 14:00:42 +01:00
rustc-std-workspace-core
rustc-std-workspace-std
std Auto merge of #114646 - matthiaskrgr:rollup-xf7qnmn, r=matthiaskrgr 2023-08-09 05:50:12 +00:00
stdarch@d77878b729 Bump stdarch 2023-06-13 21:45:04 -07:00
sysroot Expose compiler-builtins-weak-intrinsics feature for -Zbuild-std 2023-06-23 11:15:34 +01:00
test Rollup merge of #114377 - Enselic:test_get_dbpath_for_term-utf-8, r=thomcc 2023-08-09 22:59:58 +02:00
unwind Add internal_features lint 2023-08-03 14:50:50 +02:00