Enumerationswift-package-manager 6.0.1PackageModel
Requirement
The dependency requirement.
enum Requirement
The dependency requirement.
enum Requirement
import PackageModel
struct Registry
enum PackageDependency
Represents a package dependency.
case exact(Version)
case range(Range<Version>)
let identity: PackageIdentity
let productFilter: ProductFilter
let requirement: Requirement
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Encodable
A type that can encode itself to an external representation.
protocol Equatable
A type that can be compared for value equality.
protocol Escapable
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol Sendable
var description: String { get }
func encode(to encoder: Encoder) throws
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.
import PackageGraph
func toConstraintRequirement() throws -> PackageRequirement
Returns the constraint requirement representation.