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

Method remove

cranelift/entity/src/set.rs:168–171  ·  view source on GitHub ↗

Remove `k` from this bitset. Returns whether `k` was previously in this set or not.

(&mut self, k: K)

Source from the content-addressed store, hash-verified

166 ///
167 /// Returns whether `k` was previously in this set or not.
168 pub fn remove(&mut self, k: K) -> bool {
169 let index = k.index();
170 self.bitset.remove(index)
171 }
172
173 /// Removes and returns the highest-index entity from the set if it exists.
174 pub fn pop(&mut self) -> Option<K> {

Callers

nothing calls this directly

Calls 1

indexMethod · 0.45

Tested by

no test coverage detected