Instance Method インスタンスメソッド

formUnion(_:)

Inserts the elements of another set into this option set. 別のセットの要素をこのオプションセットへと挿入します。

Declaration 宣言

mutating func formUnion(_ other: Self)
Available when RawValue conforms to FixedWidthInteger. RawValueFixedWidthIntegerに準拠する時に利用可能です。

Parameters パラメータ

other

An option set. あるオプションセット。

Discussion 議論

This method is implemented as a | (bitwise OR) operation on the two sets’ raw values. このメソッドは、2つの集合の持つ生の値に関する|(ビット単位OR)演算として実装されます。