<(_:_:)
Returns a Boolean value indicating whether the value of the first argument is less than that of the second argument.
Version.swift:121static func < (lhs: Version, rhs: Version) -> Bool
Parameters
The precedence is determined according to rules described in the Semantic Versioning 2.0.0 standard, paragraph 11.
Other members in extension
Type members
init?(String
) Initializes a version struct with the provided version string.
init(Int, Int, Int, prereleaseIdentifiers: [String], buildMetadataIdentifiers: [String]
) Initializes a version struct with the provided components of a semantic version.
init(extendedGraphemeClusterLiteral: String
) Initializes a version struct with the provided extended grapheme cluster.
init(stringLiteral: String
) Initializes a version struct with the provided string literal.
init(unicodeScalarLiteral: String
) Initializes a version struct with the provided Unicode string.
static func == (lhs: Version, rhs: Version
) -> Bool Returns a Boolean value indicating whether two values are equal.
Instance members
let buildMetadataIdentifiers: [String]
The build metadata of this version according to the semantic versioning standard, such as a commit hash.
var description: String
A textual description of the version object.
let major: Int
The major version according to the semantic versioning standard.
let minor: Int
The minor version according to the semantic versioning standard.
let patch: Int
The patch version according to the semantic versioning standard.
let prereleaseIdentifiers: [String]
The pre-release identifier according to the semantic versioning standard, such as
-beta.1
.