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,

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

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

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

unsafe fn clone_to_uninit(&self, dest: *mut u8)

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

fn from(t: T) -> T

Returns the argument unchanged.

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

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

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

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

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

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