Struct IntoIter
pub struct IntoIter<T, A: Allocator = Global> { pub(in ::collections::vec_deque::into_iter) inner: VecDeque<T, A> }
An owning iterator over the elements of a VecDeque.
This struct is created by the into_iter method on VecDeque
(provided by the IntoIterator trait). See its documentation for more.
Fields
inner: VecDeque<T, A>
Implementations
impl<T, A: Allocator> IntoIter<T, A>
fn new(inner: VecDeque<T, A>) -> Selffn into_vecdeque(self) -> VecDeque<T, A>
Trait Implementations
impl<T, A: Allocator> DoubleEndedIterator for IntoIter<T, A>
fn next_back(&mut self) -> Option<T>fn advance_back_by(&mut self, n: usize) -> Result<(), NonZero<usize>>fn try_rfold<B, F, R>(&mut self, init: B, f: F) -> R where F: FnMut(B, Self::Item) -> R, R: Try<Output = B>,fn rfold<B, F>(self, init: B, f: F) -> B where F: FnMut(B, Self::Item) -> B,
impl<T, A: Allocator> ExactSizeIterator for IntoIter<T, A>
fn is_empty(&self) -> bool
impl<T, A: Allocator> FusedIterator for IntoIter<T, A>
impl<T, A: Allocator> Iterator for IntoIter<T, A>
type Item = T;fn next(&mut self) -> Option<T>fn size_hint(&self) -> (usize, Option<usize>)fn advance_by(&mut self, n: usize) -> Result<(), NonZero<usize>>fn count(self) -> usizefn try_fold<B, F, R>(&mut self, init: B, f: F) -> R where F: FnMut(B, Self::Item) -> R, R: Try<Output = B>,fn fold<B, F>(self, init: B, f: F) -> B where F: FnMut(B, Self::Item) -> B,fn last(self) -> Option<Self::Item>fn next_chunk<const N: usize>(&mut self) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>
impl<T, A: Allocator> TrustedLen for IntoIter<T, A>
impl<T: Clone, A: Clone + Allocator> Clone for IntoIter<T, A>
fn clone(&self) -> IntoIter<T, A>
impl<T: Debug, A: Allocator> Debug for IntoIter<T, A>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl<T, A> Freeze for IntoIter<T, A>
where
VecDeque<T, A>: Freeze,
impl<T, A> RefUnwindSafe for IntoIter<T, A>
where
VecDeque<T, A>: RefUnwindSafe,
impl<T, A> Send for IntoIter<T, A>
where
VecDeque<T, A>: Send,
impl<T, A> Sync for IntoIter<T, A>
where
VecDeque<T, A>: Sync,
impl<T, A> Unpin for IntoIter<T, A>
where
VecDeque<T, A>: Unpin,
impl<T, A> UnsafeUnpin for IntoIter<T, A>
where
VecDeque<T, A>: UnsafeUnpin,
impl<T, A> UnwindSafe for IntoIter<T, A>
where
VecDeque<T, A>: UnwindSafe,
Blanket Implementations
impl<I> IntoIterator for IntoIter<T, A>
where
I: Iterator,
type Item = <I as Iterator>::Item;type IntoIter = I;fn into_iter(self) -> I
impl<T> Any for IntoIter<T, A>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for IntoIter<T, A>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for IntoIter<T, A>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for IntoIter<T, A>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for IntoIter<T, A>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for IntoIter<T, A>
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for IntoIter<T, A>
impl<T> ToOwned for IntoIter<T, A>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for IntoIter<T, A>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for IntoIter<T, A>
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for IntoIter<T, A>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>