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

Method add

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

Source from the content-addressed store, hash-verified

15 }
16
17 fn add(&mut self, key: i32) {
18 self.set.insert(key);
19 }
20
21 fn remove(&mut self, key: i32) {
22 self.set.remove(&key);

Callers 1

mainFunction · 0.80

Calls 1

insertMethod · 0.80

Tested by

no test coverage detected