Static Method (Default implementation)swift-protobuf 1.29.0SwiftProtobuf
_lessThan(lhs:rhs:)
FieldTypes.swift:63static func _lessThan(lhs: BaseType, rhs: BaseType) -> Bool
static func _lessThan(lhs: BaseType, rhs: BaseType) -> Bool
s13SwiftProtobuf10MapKeyTypePAASL04BaseE0RpzrlE9_lessThan3lhs3rhsSbAE_AEtFZ
What are these?8YYG
where Self.BaseType:Comparable
import SwiftProtobuf
Support library for Swift code generated by protoc-gen-swift.
@preconcurrency protocol MapKeyType : FieldType
Marker protocol for types that can be used as map keys
associatedtype BaseType : Hashable, Sendable
@frozen struct Bool
A value type whose instances are either true
or false
.
protocol Comparable : Equatable
A type that can be compared using the relational operators <
, <=
, >=
, and >
.
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.