1 2 3 4 5 6 7 8 9
bitflags::bitflags! { #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub struct Dirty: u8 { const NONE = 0; const PAINT = 0b0001; const LAYOUT = 0b0010; const TREE = 0b0100; } }