Enumerationswift-package-manager 6.0.1PackageModel
Localization
TargetDescription.swift:51enum Localization
enum Localization
s12PackageModel17TargetDescriptionV8ResourceV12LocalizationO
What are these?9RVS8
import PackageModel
struct Resource
struct TargetDescription
The description of an individual module.
case `default`
case base
init(rule: Rule, path: String)
let path: String
The path of the resource.
let rule: Rule
The rule for the resource.
enum Rule
protocol Encodable
A type that can encode itself to an external representation.
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.
protocol Sendable
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 encode(to encoder: any Encoder) throws
Encodes this value into the given encoder, when the type’s RawValue
is String
.
func hash(into hasher: inout Hasher)