Call [`Flags::insert`] when `value` is `true` or [`Flags::remove`] when `value` is `false`.
(&mut self, other: Self, value: bool)
| 318 | |
| 319 | /// Call [`Flags::insert`] when `value` is `true` or [`Flags::remove`] when `value` is `false`. |
| 320 | fn set(&mut self, other: Self, value: bool) |
| 321 | where |
| 322 | Self: Sized, |
| 323 | { |
| 324 | if value { |
| 325 | self.insert(other); |
| 326 | } else { |
| 327 | self.remove(other); |
| 328 | } |
| 329 | } |
| 330 | |
| 331 | /// Unsets all bits in the flags. |
| 332 | fn clear(&mut self) |
nothing calls this directly
no test coverage detected