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

Method reserve_exact

cranelift/entity/src/primary.rs:172–174  ·  view source on GitHub ↗

Reserves the minimum capacity for exactly `additional` more elements to be inserted.

(&mut self, additional: usize)

Source from the content-addressed store, hash-verified

170
171 /// Reserves the minimum capacity for exactly `additional` more elements to be inserted.
172 pub fn reserve_exact(&mut self, additional: usize) {
173 self.elems.reserve_exact(additional)
174 }
175
176 /// Like `reserve_exact` but returns an error on allocation failure.
177 pub fn try_reserve_exact(&mut self, additional: usize) -> Result<(), OutOfMemory> {

Callers 1

try_ensure_capacityMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected