Struct IntoKeys

pub struct IntoKeys<K, V> { /* private fields */ }

An owning iterator over the keys of an IndexMap.

This struct is created by the IndexMap::into_keys method. See its documentation for more.

Trait Implementations

impl<K, V> Default for IntoKeys<K, V>

fn default() -> Self

impl<K, V> DoubleEndedIterator for IntoKeys<K, V>

fn next_back(&mut self) -> Option<Self::Item>
fn nth_back(&mut self, n: usize) -> Option<Self::Item>

impl<K, V> ExactSizeIterator for IntoKeys<K, V>

fn len(&self) -> usize

impl<K, V> FusedIterator for IntoKeys<K, V>

impl<K, V> Iterator for IntoKeys<K, V>

type Item = K;
fn next(&mut self) -> Option<Self::Item>
fn size_hint(&self) -> (usize, Option<usize>)
fn count(self) -> usize
fn nth(&mut self, n: usize) -> Option<Self::Item>
fn last(self) -> Option<Self::Item>
fn collect<C>(self) -> C
where
    C: FromIterator<Self::Item>,

impl<K: Clone, V> Clone for IntoKeys<K, V>

fn clone(&self) -> Self

impl<K: Debug, V> Debug for IntoKeys<K, V>

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

Auto Trait Implementations

impl<K, V> Freeze for IntoKeys<K, V> where IntoIter<Bucket<K, MaybeUninit<V>>>: Freeze,

impl<K, V> RefUnwindSafe for IntoKeys<K, V> where IntoIter<Bucket<K, MaybeUninit<V>>>: RefUnwindSafe,

impl<K, V> Send for IntoKeys<K, V> where IntoIter<Bucket<K, MaybeUninit<V>>>: Send,

impl<K, V> Sync for IntoKeys<K, V> where IntoIter<Bucket<K, MaybeUninit<V>>>: Sync,

impl<K, V> Unpin for IntoKeys<K, V> where IntoIter<Bucket<K, MaybeUninit<V>>>: Unpin,

impl<K, V> UnsafeUnpin for IntoKeys<K, V> where IntoIter<Bucket<K, MaybeUninit<V>>>: UnsafeUnpin,

impl<K, V> UnwindSafe for IntoKeys<K, V> where IntoIter<Bucket<K, MaybeUninit<V>>>: UnwindSafe,

Blanket Implementations

impl<I> IntoIterator for IntoKeys<K, V> where I: Iterator,

impl<T> Any for IntoKeys<K, V> where T: 'static + ?Sized,

impl<T> Borrow<T> for IntoKeys<K, V> where T: ?Sized,

impl<T> BorrowMut<T> for IntoKeys<K, V> where T: ?Sized,

impl<T> CloneToUninit for IntoKeys<K, V> where T: Clone,

impl<T> From<T> for IntoKeys<K, V>

impl<T> ToOwned for IntoKeys<K, V> where T: Clone,

impl<T, U> Into<U> for IntoKeys<K, V> where U: From<T>,

impl<T, U> TryFrom<U> for IntoKeys<K, V> where U: Into<T>,

impl<T, U> TryInto<U> for IntoKeys<K, V> where U: TryFrom<T>,