Whether any set bits in `other` are also set in `self`.
(&self, other: Self)
| 267 | |
| 268 | /// Whether any set bits in `other` are also set in `self`. |
| 269 | fn intersects(&self, other: Self) -> bool |
| 270 | where |
| 271 | Self: Sized, |
| 272 | { |
| 273 | self.bits() & other.bits() != Self::Bits::EMPTY |
| 274 | } |
| 275 | |
| 276 | /// Whether all set bits in `other` are also set in `self`. |
| 277 | fn contains(&self, other: Self) -> bool |