Enumerationswift-package-manager 6.0.3PackageModel
Error
PackageModel.swift:91enum Error
enum Error
import PackageModel
final class Package
The basic package representation.
case noManifest(at: AbsolutePath, version: Version?)
init(identity: PackageIdentity, manifest: Manifest, path: AbsolutePath, targets: [Module], products: [Product], targetSearchPath: AbsolutePath, testTargetSearchPath: AbsolutePath)
var description: String { get }
var diagnosticsMetadata: ObservabilityMetadata { get }
let identity: PackageIdentity
The identity of the package.
let manifest: Manifest
The manifest describing the package.
var modules: [Module]
The targets contained in the package.
let path: AbsolutePath
The local path of the package.
let products: [Product]
The products produced by the package.
let targetSearchPath: AbsolutePath
let testTargetSearchPath: AbsolutePath
static func == (lhs: Package, rhs: Package) -> Bool
func hash(into hasher: inout Hasher)
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Error : Sendable
A type representing an error value that can be thrown.
protocol Escapable
protocol Sendable
var description: String { get }
var interpolationDescription: String { get }
var localizedDescription: String { get }
Retrieve the localized description for this error.
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.