Struct IntoIter

pub struct IntoIter<T, A = Global>
where
    A: Allocator, { /* private fields */ }

An owning iterator over the entries of a HashTable in arbitrary order. The iterator element type is T.

This struct is created by the into_iter method on HashTable (provided by the IntoIterator trait). See its documentation for more. The table cannot be used after calling that method.

Implementations

impl<T, A> IntoIter<T, A> where A: Allocator,

fn iter(&self) -> Iter<'_, T>

Returns a iterator of references over the remaining items.

Trait Implementations

impl<T, A> Debug for IntoIter<T, A> where T: Debug, A: Allocator,

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<T, A> ExactSizeIterator for IntoIter<T, A> where A: Allocator,

fn len(&self) -> usize

impl<T, A> FusedIterator for IntoIter<T, A> where A: Allocator,

impl<T, A> Iterator for IntoIter<T, A> where A: Allocator,

type Item = T;
fn next(&mut self) -> Option<Self::Item>
fn size_hint(&self) -> (usize, Option<usize>)
fn fold<B, F>(self, init: B, f: F) -> B
where
    Self: Sized,
    F: FnMut(B, Self::Item) -> B,

impl<T, A: Allocator> Default for IntoIter<T, A>

fn default() -> Self

Auto Trait Implementations

impl<T, A> Freeze for IntoIter<T, A> where RawIntoIter<T, A>: Freeze,

impl<T, A> RefUnwindSafe for IntoIter<T, A> where RawIntoIter<T, A>: RefUnwindSafe,

impl<T, A> Send for IntoIter<T, A> where RawIntoIter<T, A>: Send,

impl<T, A> Sync for IntoIter<T, A> where RawIntoIter<T, A>: Sync,

impl<T, A> Unpin for IntoIter<T, A> where RawIntoIter<T, A>: Unpin,

impl<T, A> UnsafeUnpin for IntoIter<T, A> where RawIntoIter<T, A>: UnsafeUnpin,

impl<T, A> UnwindSafe for IntoIter<T, A> where RawIntoIter<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> From<T> for IntoIter<T, A>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for IntoIter<T, A> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for IntoIter<T, A> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

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>