InteroperabilityMode
BuildSettings.swift:382enum InteroperabilityMode
enum InteroperabilityMode
s18PackageDescription12SwiftSettingV20InteroperabilityModeO
What are these?379XR
import PackageDescription
Create reusable code, organize it in a lightweight way, and share it across your projects and with other developers.
struct SwiftSetting
A Swift language build setting.
case C
case Cxx
static func define(_ name: String, _ condition: BuildSettingCondition? = nil) -> SwiftSetting
Defines a compilation condition.
static func enableExperimentalFeature(_ name: String, _ condition: BuildSettingCondition? = nil) -> SwiftSetting
Enable an experimental feature with the given name.
static func enableUpcomingFeature(_ name: String, _ condition: BuildSettingCondition? = nil) -> SwiftSetting
Enable an upcoming feature with the given name.
static func interoperabilityMode(_ mode: SwiftSetting.InteroperabilityMode, _ condition: BuildSettingCondition? = nil) -> SwiftSetting
Enable Swift interoperability with a given language.
static func swiftLanguageMode(_ mode: SwiftLanguageMode, _ condition: BuildSettingCondition? = nil) -> SwiftSetting
Defines a -language-mode
to pass to the corresponding build tool.
static func unsafeFlags(_ flags: [String], _ condition: BuildSettingCondition? = nil) -> SwiftSetting
Set unsafe flags to pass arbitrary command-line flags to the corresponding build tool.
static func swiftLanguageVersion(_ version: SwiftVersion, _ condition: BuildSettingCondition? = nil) -> SwiftSetting
Defines a -swift-version
to pass to the corresponding build tool.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
init?(rawValue: String)
var hashValue: Int { get }
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.
func hash(into hasher: inout Hasher)