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

Method with_capacity

cranelift/codegen/src/dominator_tree.rs:58–63  ·  view source on GitHub ↗
(capacity: usize)

Source from the content-addressed store, hash-verified

56 }
57
58 fn with_capacity(capacity: usize) -> Self {
59 // Include the virtual root.
60 let mut nodes = Vec::with_capacity(capacity + 1);
61 nodes.push(Default::default());
62 Self { nodes }
63 }
64
65 fn len(&self) -> usize {
66 self.nodes.len()

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected