Adds a value to the set. Returns whether the value was newly inserted.
(&mut self, val: T)
| 21 | impl<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 { |
no outgoing calls
no test coverage detected