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
Re-export of the Flags
struct that is used to represent bit flags
in this crate.
A trait implemented by all flag enums.
Required Associated Types§
Required Associated Constants§
Required Methods§
Object Safety§
This trait is not object safe.