Bitmasks from enums; enums from type aliases