Cross
public struct Cross<T, U> : Pair
extension Cross: CustomStringConvertible
extension Cross: Comparable where T: Comparable, U: Comparable
extension Cross: Equatable where T: Equatable, U: Equatable
extension Cross: Hashable where T: Hashable, U: Hashable
extension Cross: Codable where T: Codable, U: Codable
Pair
of two values with potentially different types.
-
The first value contained herein.
Declaration
Swift
public let a: T
-
The second value contained herein.
Declaration
Swift
public let b: U
-
Creates a
Cross
with the given values.Declaration
Swift
@inlinable public init(_ a: T, _ b: U)
-
Printable description of
Cross
.Declaration
Swift
public var description: String { get }
-
Declaration
Swift
public static func < (lhs: Cross, rhs: Cross) -> Bool
Return Value
true if and only if the first element of
lhs
is less than the first element ofrhs
OR if those elements are equal and the second element oflhs
is less than the second element ofrhs
(lexicographic ordering).