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

Method insert

cranelift/isle/isle/src/stablemapset.rs:23–25  ·  view source on GitHub ↗

Adds a value to the set. Returns whether the value was newly inserted.

(&mut self, val: T)

Source from the content-addressed store, hash-verified

21impl<T: Hash + Eq> StableSet<T> {
22 /// Adds a value to the set. Returns whether the value was newly inserted.
23 pub fn insert(&mut self, val: T) -> bool {
24 self.0.insert(val)
25 }
26
27 /// Returns true if the set contains a value.
28 pub fn contains(&self, val: &T) -> bool {

Callers 15

addMethod · 0.45
display_isle_patternMethod · 0.45
display_isle_exprMethod · 0.45
declare_variablesMethod · 0.45
run_solverFunction · 0.45
resolve_dynamic_widthsFunction · 0.45
add_isle_constraintsFunction · 0.45
add_rule_constraintsFunction · 0.45
solve_constraintsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected