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

Method elem

cranelift/bforest/src/set.rs:253–257  ·  view source on GitHub ↗

Get the current element, or `None` if the cursor is at the end.

(&self)

Source from the content-addressed store, hash-verified

251
252 /// Get the current element, or `None` if the cursor is at the end.
253 pub fn elem(&self) -> Option<K> {
254 self.path
255 .leaf_pos()
256 .and_then(|(node, entry)| self.pool[node].unwrap_leaf().0.get(entry).cloned())
257 }
258
259 /// Move this cursor to `elem`.
260 ///

Callers 1

removeMethod · 0.45

Calls 3

leaf_posMethod · 0.80
unwrap_leafMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected