about summary refs log tree commit diff
path: root/library/alloc/src/lib.rs
diff options
context:
space:
mode:
authorchloekek <chloekek@use.startmail.com>2024-04-15 00:23:05 +0200
committerchloekek <chloekek@use.startmail.com>2024-04-15 00:31:05 +0200
commit4a5bcbb4e4fb402719d0d6c4da17a3ca43be66c2 (patch)
treea39a07befe91bed809f111d7b19e1afcef60b544 /library/alloc/src/lib.rs
parent29b120740b55aaf2f75e659ba34c4e30977e5fed (diff)
downloadrust-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.rs1
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)]