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

Method leaf_pos

cranelift/bforest/src/path.rs:233–236  ·  view source on GitHub ↗

Get the current leaf node and entry, if any.

(&self)

Source from the content-addressed store, hash-verified

231
232 /// Get the current leaf node and entry, if any.
233 pub fn leaf_pos(&self) -> Option<(Node, usize)> {
234 let i = self.size.wrapping_sub(1);
235 self.node.get(i).map(|&n| (n, self.entry[i].into()))
236 }
237
238 /// Get the current leaf node.
239 fn leaf_node(&self) -> Node {

Callers 9

nextMethod · 0.80
prevMethod · 0.80
normalizeMethod · 0.80
retainMethod · 0.80
keyMethod · 0.80
valueMethod · 0.80
value_mutMethod · 0.80
retainMethod · 0.80
elemMethod · 0.80

Calls 2

mapMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected