MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / iter

Method iter

cranelift/bforest/src/map.rs:225–231  ·  view source on GitHub ↗

Create an iterator traversing this map. The iterator type is `(K, V)`.

(&'a self, forest: &'a MapForest<K, V>)

Source from the content-addressed store, hash-verified

223
224 /// Create an iterator traversing this map. The iterator type is `(K, V)`.
225 pub fn iter<'a>(&'a self, forest: &'a MapForest<K, V>) -> MapIter<'a, K, V> {
226 MapIter {
227 root: self.root,
228 pool: &forest.nodes,
229 path: Path::default(),
230 }
231 }
232
233 /// Consume this map and its forest, yielding `(K, V)` pairs from the map.
234 pub fn into_iter(self, forest: MapForest<K, V>) -> MapIntoIter<K, V> {

Callers 2

at_first_entryMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected