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

Method cursor_mut

cranelift/bforest/src/map.rs:216–222  ·  view source on GitHub ↗

Create a mutable cursor for navigating this map. The cursor is initially positioned off the end of the map.

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

Source from the content-addressed store, hash-verified

214 ///
215 /// The cursor is initially positioned off the end of the map.
216 pub fn cursor_mut<'a, C: Comparator<K>>(
217 &'a mut self,
218 forest: &'a mut MapForest<K, V>,
219 comp: &'a C,
220 ) -> MapCursorMut<'a, K, V, C> {
221 MapCursorMut::new(self, forest, comp)
222 }
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> {

Callers 7

insertMethod · 0.80
try_insertMethod · 0.80
removeMethod · 0.80
emptyFunction · 0.80
insertingFunction · 0.80
split_level1_leafFunction · 0.80
entryMethod · 0.80

Calls 1

newFunction · 0.50

Tested by 3

emptyFunction · 0.64
insertingFunction · 0.64
split_level1_leafFunction · 0.64