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

Method insert

cranelift/entity/src/set.rs:160–163  ·  view source on GitHub ↗

Insert the element at `k`. Returns `true` if `k` was not present in the set, i.e. this is a newly-added element. Returns `false` otherwise.

(&mut self, k: K)

Source from the content-addressed store, hash-verified

158 /// Returns `true` if `k` was not present in the set, i.e. this is a
159 /// newly-added element. Returns `false` otherwise.
160 pub fn insert(&mut self, k: K) -> bool {
161 let index = k.index();
162 self.bitset.insert(index)
163 }
164
165 /// Remove `k` from this bitset.
166 ///

Callers 5

extendMethod · 0.45
basicFunction · 0.45
pop_orderedFunction · 0.45
pop_unorderedFunction · 0.45
fmt_debugFunction · 0.45

Calls 1

indexMethod · 0.45

Tested by 4

basicFunction · 0.36
pop_orderedFunction · 0.36
pop_unorderedFunction · 0.36
fmt_debugFunction · 0.36