Struct IntoKeys

#[must_use = "iterators are lazy and do nothing unless consumed"]
pub struct IntoKeys<K, V, A: AllocatorClone = Global> { pub(in ::collections::btree::map) inner: IntoIter<K, V, A> }

An owning iterator over the keys of a BTreeMap.

This struct is created by the into_keys method on BTreeMap. See its documentation for more.

Fields

inner: IntoIter<K, V, A>

Trait Implementations

impl<K, V, A> Default for IntoKeys<K, V, A> where A: AllocatorClone + Default,

fn default() -> Self

Creates an empty btree_map::IntoKeys.

# use std::collections::btree_map;
let iter: btree_map::IntoKeys<u8, u8> = Default::default();
assert_eq!(iter.len(), 0);

impl<K, V, A: AllocatorClone> DoubleEndedIterator for IntoKeys<K, V, A>

fn next_back(&mut self) -> Option<K>

impl<K, V, A: AllocatorClone> ExactSizeIterator for IntoKeys<K, V, A>

fn len(&self) -> usize

impl<K, V, A: AllocatorClone> FusedIterator for IntoKeys<K, V, A>

impl<K, V, A: AllocatorClone> Iterator for IntoKeys<K, V, A>

type Item = K;
fn next(&mut self) -> Option<K>
fn size_hint(&self) -> (usize, Option<usize>)
fn last(self) -> Option<K>
fn min(self) -> Option<K>
where
    K: Ord,
fn max(self) -> Option<K>
where
    K: Ord,

impl<K, V, A: AllocatorClone> TrustedLen for IntoKeys<K, V, A>

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

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

Auto Trait Implementations

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

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

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

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

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

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

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

Blanket Implementations

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

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

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

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

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

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

impl<T> SizedTypeProperties for IntoKeys<K, V, A>

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

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

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