LaunchOptionsSet
public struct LaunchOptionsSet
Set for LaunchOption objects, using uniqueIdentifier property for hashing and comparison.
-
Create empty option set.
Declaration
Swift
public init()
-
Declaration
Swift
public typealias Element = LaunchOption -
Checks if set contains given element.
Declaration
Swift
public func contains(_ member: LaunchOption) -> BoolParameters
memberElement to search for
Return Value
Boolean value indicating whether set contains given element.
-
Inserts the given element in the set if it is not already present.
Declaration
Swift
public mutating func insert(_ newMember: LaunchOption) -> (inserted: Bool, memberAfterInsert: LaunchOption)Parameters
newMemberAn element to insert into the set.
Return Value
(true, newMember)ifnewMemberwas not contained in the set. -
Inserts the given element into the set unconditionally.
Declaration
Swift
public mutating func update(with newMember: LaunchOption) -> LaunchOption?Parameters
newMemberAn element to insert into the set.
Return Value
For ordinary sets, an element equal to
newMemberif the set already contained such a member; otherwise,nil. -
Performs XOR operation.
Declaration
Swift
public func symmetricDifference(_ other: LaunchOptionsSet) -> LaunchOptionsSetParameters
otherSet to combine with.
Return Value
Result of the operation.
-
Performs XOR operation.
Declaration
Swift
public mutating func formSymmetricDifference(_ other: LaunchOptionsSet)Parameters
otherSet to combine with.
-
Remove element from set.
Declaration
Swift
public mutating func remove(_ member: LaunchOption) -> LaunchOption?Parameters
memberElement to remove.
Return Value
Removed element (or nil if it didn’t exist).
-
Performs AND operation.
Declaration
Swift
public func intersection(_ other: LaunchOptionsSet) -> LaunchOptionsSetParameters
otherSet to combine with.
Return Value
Result of the operation.
-
Performs AND operation.
Declaration
Swift
public mutating func formIntersection(_ other: LaunchOptionsSet)Parameters
otherSet to combine with.
-
Performs OR operation.
Declaration
Swift
public func union(_ other: LaunchOptionsSet) -> LaunchOptionsSetParameters
otherSet to combine with.
Return Value
Result of the operation.
-
Performs OR operation.
Declaration
Swift
public mutating func formUnion(_ other: LaunchOptionsSet)Parameters
otherSet to combine with.
-
Declaration
Swift
public typealias Iterator = IndexingIterator<[LaunchOption]> -
Creates generator for collection.
Declaration
Swift
public func makeIterator() -> IteratorReturn Value
Generator to walk over elements of the set.
LaunchOptionsSet Structure Reference