(&self, entity: T)
| 81 | #[inline] |
| 82 | #[track_caller] |
| 83 | pub fn contains(&self, entity: T) -> bool { |
| 84 | let (idx, bit) = Self::index(entity); |
| 85 | if let Some(&word) = self.storage.get(idx) { |
| 86 | word & (1 << bit) != 0 |
| 87 | } else { |
| 88 | false |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | /// Inserts an element into the set. |
| 93 | #[inline] |
no test coverage detected