Struct IntoIter
pub struct IntoIter<K, V, A: AllocatorClone = Global> { pub(in ::collections::btree::map) range: LazyLeafRange<Dying, K, V>, pub(in ::collections::btree::map) length: usize, pub(in ::collections::btree::map) alloc: A }
An owning iterator over the entries of a BTreeMap, sorted by key.
This struct is created by the into_iter method on BTreeMap
(provided by the IntoIterator trait). See its documentation for more.
Fields
range: LazyLeafRange<Dying, K, V>length: usizealloc: AThe BTreeMap will outlive this IntoIter so we don't care about drop order for
alloc.
Implementations
impl<K, V, A: AllocatorClone> IntoIter<K, V, A>
fn iter(&self) -> Iter<'_, K, V>Returns an iterator of references over the remaining items.
impl<K, V, A: AllocatorClone> IntoIter<K, V, A>
fn dying_next(&mut self) -> Option<Handle<NodeRef<Dying, K, V, LeafOrInternal>, KV>>Core of a
nextmethod returning a dying KV handle, invalidated by further calls to this function and some others.fn dying_next_back(&mut self) -> Option<Handle<NodeRef<Dying, K, V, LeafOrInternal>, KV>>Core of a
next_backmethod returning a dying KV handle, invalidated by further calls to this function and some others.
Trait Implementations
impl<K, V, A> Default for IntoIter<K, V, A>
where
A: AllocatorClone + Default,
fn default() -> SelfCreates an empty
btree_map::IntoIter.# use std::collections::btree_map; let iter: btree_map::IntoIter<u8, u8> = Default::default(); assert_eq!(iter.len(), 0);
impl<K, V, A: AllocatorClone> DoubleEndedIterator for IntoIter<K, V, A>
fn next_back(&mut self) -> Option<(K, V)>
impl<K, V, A: AllocatorClone> Drop for IntoIter<K, V, A>
fn drop(&mut self)
impl<K, V, A: AllocatorClone> ExactSizeIterator for IntoIter<K, V, A>
fn len(&self) -> usize
impl<K, V, A: AllocatorClone> FusedIterator for IntoIter<K, V, A>
impl<K, V, A: AllocatorClone> Iterator for IntoIter<K, V, A>
type Item = (K, V);fn next(&mut self) -> Option<(K, V)>fn size_hint(&self) -> (usize, Option<usize>)
impl<K, V, A: AllocatorClone> TrustedLen for IntoIter<K, V, A>
impl<K: Debug, V: Debug, A: AllocatorClone> Debug for IntoIter<K, V, A>
fn fmt(&self, f: &mut Formatter<'_>) -> Result