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

Method new

cranelift/entity/src/map.rs:46–55  ·  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 where
48 V: Default,
49 {
50 Self {
51 elems: Vec::new(),
52 default: Default::default(),
53 unused: PhantomData,
54 }
55 }
56
57 /// Create a new, empty map with the specified capacity.
58 ///

Callers

nothing calls this directly

Calls 2

EClass · 0.70
newFunction · 0.50

Tested by

no test coverage detected