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

Method try_with_capacity

cranelift/bitset/src/compound.rs:111–115  ·  view source on GitHub ↗
(capacity: usize)

Source from the content-addressed store, hash-verified

109 /// allocation failure.
110 #[inline]
111 pub fn try_with_capacity(capacity: usize) -> Result<Self, OutOfMemory> {
112 let mut bitset = Self::default();
113 bitset.try_ensure_capacity(capacity)?;
114 Ok(bitset)
115 }
116
117 /// Get the number of elements in this bitset.
118 ///

Callers

nothing calls this directly

Calls 2

OkFunction · 0.85
try_ensure_capacityMethod · 0.45

Tested by

no test coverage detected