Get a flags value with all known bits set.
()
| 143 | |
| 144 | /// Get a flags value with all known bits set. |
| 145 | fn all() -> Self { |
| 146 | let mut truncated = Self::Bits::EMPTY; |
| 147 | |
| 148 | for flag in Self::FLAGS.iter() { |
| 149 | truncated = truncated | flag.value().bits(); |
| 150 | } |
| 151 | |
| 152 | Self::from_bits_retain(truncated) |
| 153 | } |
| 154 | |
| 155 | /// Get a flags value with all bits from named flags set. |
| 156 | /// |
nothing calls this directly
no test coverage detected