Structs
The following structs are available globally.
-
The functions in AutoBitmask implement a simple technique allowing non-bitwise types to conform to
See moreIBitmaskRepresentable
with only a few lines of code. Types must conform toIAutoBitmaskable
(which inherits fromIBitmaskRepresentable
). Enums seem to work best.Declaration
Swift
public struct AutoBitmask
-
A representation of a finite set of options (or flags), some of which are set (flagged). A
See moreBitmask<T>
can be converted to anOptionSetView<T>
.Declaration
Swift
public struct OptionSetView <T: IBitmaskRepresentable where T: Hashable>