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) -> Bool
Parameters
member
Element 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
newMember
An element to insert into the set.
Return Value
(true, newMember)
ifnewMember
was not contained in the set. -
Inserts the given element into the set unconditionally.
Declaration
Swift
public mutating func update(with newMember: LaunchOption) -> LaunchOption?
Parameters
newMember
An element to insert into the set.
Return Value
For ordinary sets, an element equal to
newMember
if the set already contained such a member; otherwise,nil
. -
Performs XOR operation.
Declaration
Swift
public func symmetricDifference(_ other: LaunchOptionsSet) -> LaunchOptionsSet
Parameters
other
Set to combine with.
Return Value
Result of the operation.
-
Performs XOR operation.
Declaration
Swift
public mutating func formSymmetricDifference(_ other: LaunchOptionsSet)
Parameters
other
Set to combine with.
-
Remove element from set.
Declaration
Swift
public mutating func remove(_ member: LaunchOption) -> LaunchOption?
Parameters
member
Element to remove.
Return Value
Removed element (or nil if it didn’t exist).
-
Performs AND operation.
Declaration
Swift
public func intersection(_ other: LaunchOptionsSet) -> LaunchOptionsSet
Parameters
other
Set to combine with.
Return Value
Result of the operation.
-
Performs AND operation.
Declaration
Swift
public mutating func formIntersection(_ other: LaunchOptionsSet)
Parameters
other
Set to combine with.
-
Performs OR operation.
Declaration
Swift
public func union(_ other: LaunchOptionsSet) -> LaunchOptionsSet
Parameters
other
Set to combine with.
Return Value
Result of the operation.
-
Performs OR operation.
Declaration
Swift
public mutating func formUnion(_ other: LaunchOptionsSet)
Parameters
other
Set to combine with.
-
Declaration
Swift
public typealias Iterator = IndexingIterator<[LaunchOption]>
-
Creates generator for collection.
Declaration
Swift
public func makeIterator() -> Iterator
Return Value
Generator to walk over elements of the set.