Open zopsicle opened 5 days ago
Feature gate: #![feature(vec_deque_iter_as_slices)]
#![feature(vec_deque_iter_as_slices)]
This is a tracking issue for:
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
Each of these functions obtains a pair of slices from a VecDeque iterator, similar to VecDeque::as_slices.
VecDeque
VecDeque::as_slices
use std::collections::vec_deque::{Iter, IterMut}; impl<'a, T> Iter<'a, T> { pub fn as_slices(&self) -> (&'a [T], &'a [T]) { ... } } impl<'a, T> IterMut<'a, T> { pub fn into_slices(self) -> (&'a mut [T], &'a mut [T]) { ... } pub fn as_slices(&self) -> (&[T], &[T]) { ... } pub fn as_mut_slices(&mut self) -> (&mut [T], &mut [T]) { ... } }
Feature gate:
#![feature(vec_deque_iter_as_slices)]
This is a tracking issue for:
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
Each of these functions obtains a pair of slices from a
VecDeque
iterator, similar toVecDeque::as_slices
.Public API
Steps / History
Unresolved Questions