Name
Uniquely identifies a package in a scope
struct Name
Uniquely identifies a package in a scope
struct Name
import PackageModel
struct PackageIdentity
The canonical identifier for a package, based on its source location.
init(from decoder: Decoder) throws
init(path: AbsolutePath)
Creates a package identity from a file path.
init(url: SourceControlURL)
Creates a package identity from a URL.
init(urlString: String)
Creates a package identity from a URL.
static func plain(_ value: String) -> PackageIdentity
Creates a plain package identity for a root package
let description: String
A textual representation of this instance.
var isRegistry: Bool { get }
var registry: RegistryIdentity? { get }
static func < (lhs: PackageIdentity, rhs: PackageIdentity) -> Bool
static func == (lhs: PackageIdentity, rhs: PackageIdentity) -> Bool
static func > (lhs: PackageIdentity, rhs: PackageIdentity) -> Bool
func encode(to encoder: Encoder) throws
func hash(into hasher: inout Hasher)
struct RegistryIdentity
struct Scope
Provides a namespace for related packages within a package registry.
var scopeAndName: (scope: Scope, name: Name)? { get }
protocol Comparable : Equatable
A type that can be compared using the relational operators <
, <=
, >=
, and >
.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol ExpressibleByExtendedGraphemeClusterLiteral : ExpressibleByUnicodeScalarLiteral
A type that can be initialized with a string literal containing a single extended grapheme cluster.
protocol ExpressibleByStringLiteral : ExpressibleByExtendedGraphemeClusterLiteral
A type that can be initialized with a string literal.
protocol ExpressibleByUnicodeScalarLiteral
A type that can be initialized with a string literal containing a single Unicode scalar value.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol LosslessStringConvertible : CustomStringConvertible
A type that can be represented as a string in a lossless, unambiguous way.
protocol Sendable
init?(_ description: String)
init(stringLiteral value: StringLiteralType)
init(validating description: String) throws
let description: String
static func < (lhs: Name, rhs: Name) -> Bool
static func == (lhs: Name, rhs: Name) -> Bool
static func > (lhs: Name, rhs: Name) -> Bool
func hash(into hasher: inout Hasher)
init(extendedGraphemeClusterLiteral value: Self.StringLiteralType)
init(unicodeScalarLiteral value: Self.ExtendedGraphemeClusterLiteralType)
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.
static func ... (minimum: Self) -> PartialRangeFrom<Self>
Returns a partial range extending upward from a lower bound.
static func ... (maximum: Self) -> PartialRangeThrough<Self>
Returns a partial range up to, and including, its upper bound.
static func ... (minimum: Self, maximum: Self) -> ClosedRange<Self>
Returns a closed range that contains both of its bounds.
static func ..< (maximum: Self) -> PartialRangeUpTo<Self>
Returns a partial range up to, but not including, its upper bound.
static func ..< (minimum: Self, maximum: Self) -> Range<Self>
Returns a half-open range that contains its lower bound but not its upper bound.
static func <= (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether the value of the first argument is less than or equal to that of the second argument.
static func > (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether the value of the first argument is greater than that of the second argument.
static func >= (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether the value of the first argument is greater than or equal to that of the second argument.