Struct IntoIter
pub struct IntoIter<K, A: Allocator = Global> { pub(in ::collections::hash::set) base: IntoIter<K, A> }
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.
Examples
use std::collections::HashSet;
let a = HashSet::from([1, 2, 3]);
let mut iter = a.into_iter();
Fields
base: IntoIter<K, A>
Trait Implementations
impl<K> Default for IntoIter<K>
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 count(self) -> usizefn 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