Struct IntoIter

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

An owning iterator over the items of a HashSet.

This struct is created by the into_iter method on HashSet (provided by the IntoIterator trait). See its documentation for more.

Trait Implementations

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

fn default() -> Self

impl<K, A: Allocator> ExactSizeIterator for IntoIter<K, A>

fn len(&self) -> usize

impl<K, A: Allocator> FusedIterator for IntoIter<K, A>

impl<K, A: Allocator> Iterator for IntoIter<K, A>

type Item = K;
fn next(&mut self) -> Option<K>
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<K: Debug, A: Allocator> Debug for IntoIter<K, A>

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

Auto Trait Implementations

impl<K, A> Freeze for IntoIter<K, A> where IntoIter<K, (), A>: Freeze,

impl<K, A> RefUnwindSafe for IntoIter<K, A> where IntoIter<K, (), A>: RefUnwindSafe,

impl<K, A> Send for IntoIter<K, A> where IntoIter<K, (), A>: Send,

impl<K, A> Sync for IntoIter<K, A> where IntoIter<K, (), A>: Sync,

impl<K, A> Unpin for IntoIter<K, A> where IntoIter<K, (), A>: Unpin,

impl<K, A> UnsafeUnpin for IntoIter<K, A> where IntoIter<K, (), A>: UnsafeUnpin,

impl<K, A> UnwindSafe for IntoIter<K, A> where IntoIter<K, (), A>: UnwindSafe,

Blanket Implementations

impl<I> IntoIterator for IntoIter<K, A> where I: Iterator,

type Item = <I as Iterator>::Item;
type IntoIter = I;
fn into_iter(self) -> I

impl<T> Any for IntoIter<K, A> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for IntoIter<K, A> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for IntoIter<K, A> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for IntoIter<K, A>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for IntoIter<K, 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<K, A> where U: Into<T>,

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

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

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>