MapKeyType
Marker protocol for types that can be used as map keys
@preconcurrency protocol MapKeyType : FieldType
Browse conforming typesMarker protocol for types that can be used as map keys
@preconcurrency protocol MapKeyType : FieldType
import SwiftProtobuf
Support library for Swift code generated by protoc-gen-swift.
@preconcurrency protocol FieldType : Sendable
protocol Sendable
static func _lessThan(lhs: BaseType, rhs: BaseType) -> Bool
A comparison function for where order is needed. Can’t use Comparable
because Bool
doesn’t conform, and since it is public
there is no way to add a conformance internal to SwiftProtobuf.
protocol Comparable : Equatable
A type that can be compared using the relational operators <
, <=
, >=
, and >
.
static func _lessThan(lhs: BaseType, rhs: BaseType) -> Bool