Enumerationswift-package-manager 6.0.3PackageGraph
VersionSetSpecifier
An abstract definition for a set of versions.
enum VersionSetSpecifier
An abstract definition for a set of versions.
enum VersionSetSpecifier
import PackageGraph
case any
The universal set.
case empty
The empty set.
case range(Range<Version>)
A non-empty range of version.
case exact(Version)
The exact version that is required.
case ranges([Range<Version>])
A range of disjoint versions (sorted).
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 Escapable
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
static func union(from ranges: [Swift.Range<Version>]) -> VersionSetSpecifier
static func union(from range: Swift.Range<Version>) -> VersionSetSpecifier
var description: String { get }
var supportsPrereleases: Bool { get }
var withoutPrereleases: VersionSetSpecifier { get }
static func == (lhs: VersionSetSpecifier, rhs: VersionSetSpecifier) -> Bool
func contains(_ version: Version) -> Bool
Check if the set contains a version.
func difference(_ rhs: VersionSetSpecifier) -> VersionSetSpecifier
func intersection(_ rhs: VersionSetSpecifier) -> VersionSetSpecifier
Compute the intersection of two set specifiers.
func union(_ rhs: VersionSetSpecifier) -> VersionSetSpecifier
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.