Extension (Structure)swift-package-manager 6.1.2all tags
Range (ext)
You’re viewing third-party extensions to Range
, a struct from the Swift standard library.
You can also read the documentation forRange
itself.
extension Range
You’re viewing third-party extensions to Range
, a struct from the Swift standard library.
You can also read the documentation forRange
itself.
extension Range
@frozen struct Range<Bound> where Bound : Comparable
A half-open interval from a lower bound up to, but not including, an upper bound.
import PackageDescription
Create reusable code, organize it in a lightweight way, and share it across your projects and with other developers.
protocol Comparable : Equatable
A type that can be compared using the relational operators <
, <=
, >=
, and >
.
static func upToNextMajor(from version: Version) -> Range<Bound> where Bound == Version
Returns a requirement for a version range, starting at the given minimum version and going up to the next major version. This is the recommended version requirement.
static func upToNextMinor(from version: Version) -> Range<Bound> where Bound == Version
Returns a requirement for a version range, starting at the given minimum version and going up to the next minor version.
import PackageModel
static func upToNextMajor(from version: Version) -> Range<Bound> where Bound == Version
static func upToNextMinor(from version: Version) -> Range<Bound> where Bound == Version