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

formIntersection(_:)

Removes all elements of this option set that are not also present in the given set. このオプションセットに属し、また与えられたセットの中に含まれない、すべての要素を除去します。

Declaration 宣言

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

Parameters パラメータ

other

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

Discussion 議論

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