Trait sawp_flags::Flag
source · 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.