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

Method new

cranelift/entity/src/primary.rs:46–51  ·  view source on GitHub ↗

Create a new empty map.

()

Source from the content-addressed store, hash-verified

44{
45 /// Create a new empty map.
46 pub fn new() -> Self {
47 Self {
48 elems: Vec::new(),
49 unused: PhantomData,
50 }
51 }
52
53 /// Create a new empty map with the given capacity.
54 pub fn with_capacity(capacity: usize) -> Self {

Callers

nothing calls this directly

Calls 2

EClass · 0.70
newFunction · 0.50

Tested by

no test coverage detected