MCPcopy Create free account
hub / github.com/StudyRust/leetcode_rust / remove

Method remove

705-design-hashset.rs:21–23  ·  view source on GitHub ↗
(&mut self, key: i32)

Source from the content-addressed store, hash-verified

19 }
20
21 fn remove(&mut self, key: i32) {
22 self.set.remove(&key);
23 }
24
25 fn contains(&self, key: i32) -> bool {
26 self.set.contains(&key)

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected