AutoBitmask

public struct AutoBitmask

The functions in AutoBitmask implement a simple technique allowing non-bitwise types to conform to IBitmaskRepresentable with only a few lines of code. Types must conform to IAutoBitmaskable (which inherits from IBitmaskRepresentable). Enums seem to work best.