Whether all set bits in `other` are also set in `self`.
(&self, other: Self)
| 275 | |
| 276 | /// Whether all set bits in `other` are also set in `self`. |
| 277 | fn contains(&self, other: Self) -> bool |
| 278 | where |
| 279 | Self: Sized, |
| 280 | { |
| 281 | self.bits() & other.bits() == other.bits() |
| 282 | } |
| 283 | |
| 284 | /// Remove any unknown bits from the flags. |
| 285 | fn truncate(&mut self) |