LaunchOptionsSet
public struct LaunchOptionsSet
Set for LaunchOption objects, using uniqueIdentifier
property for hashing and comparison.
-
Create empty option set.
Declaration
Swift
public init()
-
Checks if set contains given element. - parameter member: Element to search for - returns: Boolean value indicating whether 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. - parameter newMember: An element to insert into the set. - returns:
(true, newMember)
ifnewMember
was not contained in the set.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. - parameter newMember: An element to insert into the set. - returns: For ordinary sets, an element equal to
newMember
if the set already contained such a member; otherwise,nil
.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. - parameter other: Set to combine with. - returns: Result of the operation.
Declaration
Swift
public func symmetricDifference(_ other: LaunchOptionsSet) -> LaunchOptionsSet
Parameters
other
Set to combine with.
Return Value
Result of the operation.
-
Performs XOR operation. - parameter other: Set to combine with.
Declaration
Swift
public mutating func formSymmetricDifference(_ other: LaunchOptionsSet)
Parameters
other
Set to combine with.
-
Remove element from set. - parameter member: Element to remove. - returns: Removed element (or nil if it didn’t exist).
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. - parameter other: Set to combine with. - returns: Result of the operation.
Declaration
Swift
public func intersection(_ other: LaunchOptionsSet) -> LaunchOptionsSet
Parameters
other
Set to combine with.
Return Value
Result of the operation.
-
Performs AND operation. - parameter other: Set to combine with.
Declaration
Swift
public mutating func formIntersection(_ other: LaunchOptionsSet)
Parameters
other
Set to combine with.
-
Performs OR operation. - parameter other: Set to combine with. - returns: Result of the operation.
Declaration
Swift
public func union(_ other: LaunchOptionsSet) -> LaunchOptionsSet
Parameters
other
Set to combine with.
Return Value
Result of the operation.
-
Performs OR operation. - parameter other: Set to combine with.
Declaration
Swift
public mutating func formUnion(_ other: LaunchOptionsSet)
Parameters
other
Set to combine with.
-
Creates generator for collection. - returns: Generator to walk over elements of the set.
Declaration
Swift
public func makeIterator() -> Iterator
Return Value
Generator to walk over elements of the set.