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

Method cursor

cranelift/bforest/src/map.rs:205–211  ·  view source on GitHub ↗

Create an immutable cursor for navigating this map. The cursor is initially positioned off the end of the map.

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

Source from the content-addressed store, hash-verified

203 ///
204 /// The cursor is initially positioned off the end of the map.
205 pub fn cursor<'a, C: Comparator<K>>(
206 &'a self,
207 forest: &'a MapForest<K, V>,
208 comp: &'a C,
209 ) -> MapCursor<'a, K, V, C> {
210 MapCursor::new(self, forest, comp)
211 }
212
213 /// Create a mutable cursor for navigating this map.
214 ///

Callers 2

rangeMethod · 0.45
immutable_cursorFunction · 0.45

Calls 1

newFunction · 0.50

Tested by 1

immutable_cursorFunction · 0.36