Get the element at `k` if it exists.
(&self, k: K)
| 89 | |
| 90 | /// Get the element at `k` if it exists. |
| 91 | pub fn contains(&self, k: K) -> bool { |
| 92 | let index = k.index(); |
| 93 | self.bitset.contains(index) |
| 94 | } |
| 95 | |
| 96 | /// Is this set completely empty? |
| 97 | pub fn is_empty(&self) -> bool { |