Insert the element at `k`. Returns `true` if `k` was not present in the set, i.e. this is a newly-added element. Returns `false` otherwise.
(&mut self, k: K)
| 158 | /// Returns `true` if `k` was not present in the set, i.e. this is a |
| 159 | /// newly-added element. Returns `false` otherwise. |
| 160 | pub fn insert(&mut self, k: K) -> bool { |
| 161 | let index = k.index(); |
| 162 | self.bitset.insert(index) |
| 163 | } |
| 164 | |
| 165 | /// Remove `k` from this bitset. |
| 166 | /// |