RawRepresentable
protocol RawRepresentable
Extension for Integer-based OptionSet
-
encapsulate the code to build bit value for each OptionSet element
Declaration
Swift
public init(type: Int)