bitflags::bitflags! {
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct Features: u32 {
const STROKE_OUT = 1 << 0;
const STROKE_IN = 1 << 1;
const GLOW_OUT = 1 << 2;
const GLOW_IN = 1 << 3;
const SHADOW = 1 << 4;
}
}
impl Features {
pub fn has_outer_effects(&self) -> bool {
self.intersects(Features::STROKE_OUT | Features::GLOW_OUT | Features::SHADOW)
}
}