Whether all known bits in this flags value are set.
(&self)
| 260 | |
| 261 | /// Whether all known bits in this flags value are set. |
| 262 | fn is_all(&self) -> bool { |
| 263 | // NOTE: We check against `Self::all` here, not `Self::Bits::ALL` |
| 264 | // because the set of all flags may not use all bits |
| 265 | Self::all().bits() | self.bits() == self.bits() |
| 266 | } |
| 267 | |
| 268 | /// Whether any set bits in `other` are also set in `self`. |
| 269 | fn intersects(&self, other: Self) -> bool |