pub trait Flag:
Copy
+ Clone
+ Debug
+ Display
+ 'static {
type Primitive: Primitive;
const ITEMS: &'static [Self];
// Required methods
fn bits(self) -> Self::Primitive;
fn none() -> Flags<Self>;
fn all() -> Flags<Self>;
}Expand description
A trait implemented by all flag enums.
Required Associated Constants§
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.