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

Method capacity

cranelift/entity/src/map.rs:99–101  ·  view source on GitHub ↗

Returns the number of elements the map can hold without reallocating.

(&self)

Source from the content-addressed store, hash-verified

97
98 /// Returns the number of elements the map can hold without reallocating.
99 pub fn capacity(&self) -> usize {
100 self.elems.capacity()
101 }
102
103 /// Get the element at `k` if it exists.
104 #[inline(always)]

Callers 2

block_capacityMethod · 0.45
try_resizeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected