1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
// SPDX-FileCopyrightText: 2025 maplike contributors // // SPDX-License-Identifier: MIT OR Apache-2.0 //! Iteration traits for map-like containers. use crate::containers::Container; /// Consume the collection and yield owned key-value pairs. pub trait IntoIter<K>: Container { /// Iterator that consumes the collection. type IntoIter: Iterator<Item = (K, Self::Value)>; /// Consume the collection and yield owned key-value pairs. fn into_iter(self) -> Self::IntoIter; }