diff options
| author | chloekek <chloekek@use.startmail.com> | 2024-04-15 00:23:05 +0200 |
|---|---|---|
| committer | chloekek <chloekek@use.startmail.com> | 2024-04-15 00:31:05 +0200 |
| commit | 4a5bcbb4e4fb402719d0d6c4da17a3ca43be66c2 (patch) | |
| tree | a39a07befe91bed809f111d7b19e1afcef60b544 /library/alloc/src/lib.rs | |
| parent | 29b120740b55aaf2f75e659ba34c4e30977e5fed (diff) | |
| download | rust-4a5bcbb4e4fb402719d0d6c4da17a3ca43be66c2.tar.gz rust-4a5bcbb4e4fb402719d0d6c4da17a3ca43be66c2.zip | |
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 dec04d7e421..9862af7f1e7 100644 --- a/library/alloc/src/lib.rs +++ b/library/alloc/src/lib.rs @@ -150,6 +150,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)] |
