macro_rules! for_each_kind {
    ($flags: ident, $f: ident, $($kind: ident),+) => { ... };
}