pub fn is_set<T>(flags: T, flag: T) -> boolwhere
    T: BitAnd<Output = T> + Eq + Copy,