Trait sawp_flags::Flag
source · [−]pub trait Flag: Copy + Clone + Debug + Display + 'static {
type Primitive: Primitive;
const ITEMS: &'static [Self];
fn bits(self) -> Self::Primitive;
fn none() -> Flags<Self>;
fn all() -> Flags<Self>;
}
Expand description
A trait implemented by all flag enums.
Required Associated Types
Required Associated Constants
const ITEMS: &'static [Self]
const ITEMS: &'static [Self]
A list of all flag variants in the enum