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

Method contains

cranelift/bitset/src/compound.rs:222–229  ·  view source on GitHub ↗
(&self, i: usize)

Source from the content-addressed store, hash-verified

220 /// ```
221 #[inline]
222 pub fn contains(&self, i: usize) -> bool {
223 let (word, bit) = Self::word_and_bit(i);
224 if word < self.elems.len() {
225 self.elems[word].contains(bit)
226 } else {
227 false
228 }
229 }
230
231 /// Ensure there is space in this bitset for the values `0..n`, growing the
232 /// backing storage if necessary.

Callers

nothing calls this directly

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected