(&self, i: usize)
| 220 | /// ``` |
| 221 | #[inline] |
| 222 | pub fn contains(&self, i: usize) -> bool { |
| 223 | let (word, bit) = Self::word_and_bit(i); |
| 224 | if word < self.elems.len() { |
| 225 | self.elems[word].contains(bit) |
| 226 | } else { |
| 227 | false |
| 228 | } |
| 229 | } |
| 230 | |
| 231 | /// Ensure there is space in this bitset for the values `0..n`, growing the |
| 232 | /// backing storage if necessary. |