Convert from a bits value, unsetting any unknown bits.
(bits: Self::Bits)
| 199 | |
| 200 | /// Convert from a bits value, unsetting any unknown bits. |
| 201 | fn from_bits_truncate(bits: Self::Bits) -> Self { |
| 202 | Self::from_bits_retain(bits & Self::all().bits()) |
| 203 | } |
| 204 | |
| 205 | /// Convert from a bits value exactly. |
| 206 | fn from_bits_retain(bits: Self::Bits) -> Self; |