RegistryIdentity
PackageIdentity.swift:77struct RegistryIdentity
struct RegistryIdentity
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 Name
Uniquely identifies a package in a scope
struct Scope
Provides a namespace for related packages within a package registry.
var scopeAndName: (scope: Scope, name: Name)? { get }
protocol CustomStringConvertible
A type with a customized textual 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 Sendable
var description: String { get }
let name: PackageIdentity.Name
let scope: PackageIdentity.Scope
let underlying: PackageIdentity
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.