You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
D44: maps have no into_iter, into_keys, into_values or drain #2191
Specification collection-operations.md (D44) lists the transferring traversals of every owning keyed map:
Method
Signature
Yields
into_iter
(move self: Self) -> MapIntoIter[K, V]
(K, V)
into_keys
(move self: Self) -> MapIntoKeys[K, V]
K
into_values
(move self: Self) -> MapIntoValues[K, V]
V
drain
(mut self: Self) -> MapDrain[K, V]
(K, V)
None of them exist on HashMap or BTreeMap. The observing half of D44 non-compliance item 3 (iter, keys, values as view iterators) landed with #2183, #2184 and #2185. This is the transferring half. A HashMap needs a runtime operation that moves one entry out of a slot without dropping it.
Activity
D44: map traversal observes: keys(), values() and iter() are view ite…
D44: map traversal observes; keys/values/iter are view iterators; Has…
D44 map transfers, D97 TotalF64, deep-debugging tools, and the fixes …