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

Method set_root_node

cranelift/bforest/src/path.rs:226–230  ·  view source on GitHub ↗

Set the root node and point the path at the first entry of the node.

(&mut self, root: Node)

Source from the content-addressed store, hash-verified

224
225 /// Set the root node and point the path at the first entry of the node.
226 pub fn set_root_node(&mut self, root: Node) {
227 self.size = 1;
228 self.node[0] = root;
229 self.entry[0] = 0;
230 }
231
232 /// Get the current leaf node and entry, if any.
233 pub fn leaf_pos(&self) -> Option<(Node, usize)> {

Callers 2

try_insertMethod · 0.80
try_insertMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected