diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-11-19 22:24:43 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-19 22:24:43 +0100 |
| commit | 001f98ad80dc9cd856347ff52d60bb4705cc3ead (patch) | |
| tree | 77f55aaa46aa9e44947d7225da99296534e520ef /library/alloc/src/lib.rs | |
| parent | 78993684f2ba22082197d63627f3e91069911839 (diff) | |
| parent | 4a5bcbb4e4fb402719d0d6c4da17a3ca43be66c2 (diff) | |
| download | rust-001f98ad80dc9cd856347ff52d60bb4705cc3ead.tar.gz rust-001f98ad80dc9cd856347ff52d60bb4705cc3ead.zip | |
Rollup merge of #123947 - zopsicle:vec_deque-Iter-as_slices, r=Amanieu
Add vec_deque::Iter::as_slices and friends Add the following methods, that work similarly to VecDeque::as_slices: - alloc::collections::vec_deque::Iter::as_slices - alloc::collections::vec_deque::IterMut::into_slices - alloc::collections::vec_deque::IterMut::as_slices - alloc::collections::vec_deque::IterMut::as_mut_slices Obtaining slices from a VecDeque iterator was not previously possible.
Diffstat (limited to 'library/alloc/src/lib.rs')
| -rw-r--r-- | library/alloc/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/alloc/src/lib.rs b/library/alloc/src/lib.rs index dd9dfa3f5e2..7839fe04b8d 100644 --- a/library/alloc/src/lib.rs +++ b/library/alloc/src/lib.rs @@ -143,6 +143,7 @@ #![feature(sized_type_properties)] #![feature(slice_from_ptr_range)] #![feature(slice_index_methods)] +#![feature(slice_iter_mut_as_mut_slice)] #![feature(slice_ptr_get)] #![feature(slice_range)] #![feature(std_internals)] |
