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

Method cursor

cranelift/bforest/src/set.rs:173–179  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

171 /// Create a cursor for navigating this set. The cursor is initially positioned off the end of
172 /// the set.
173 pub fn cursor<'a, C: Comparator<K>>(
174 &'a mut self,
175 forest: &'a mut SetForest<K>,
176 comp: &'a C,
177 ) -> SetCursor<'a, K, C> {
178 SetCursor::new(self, forest, comp)
179 }
180
181 /// Create an iterator traversing this set. The iterator type is `K`.
182 pub fn iter<'a>(&'a self, forest: &'a SetForest<K>) -> SetIter<'a, K> {

Callers 4

insertMethod · 0.45
try_insertMethod · 0.45
removeMethod · 0.45
four_levelFunction · 0.45

Calls 1

newFunction · 0.50

Tested by 1

four_levelFunction · 0.36