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() -> SelfCreates 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