pub trait BitFlag: Copy {
const ALL_BITS: u8;
// Required method
fn bits(self) -> u8;
}Expand description
A single bit flag backed by a u8 mask.
Required Associated Constants§
Sourceconst ALL_BITS: u8
const ALL_BITS: u8
Bitwise-OR of every flag — the bits BitFlags::from_bits accepts.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".