File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -1237,6 +1237,19 @@ public enum FloatingPointSign: Int {
1237
1237
public static func == ( a: FloatingPointSign , b: FloatingPointSign ) -> Bool {
1238
1238
return a. rawValue == b. rawValue
1239
1239
}
1240
+
1241
+ @inlinable
1242
+ public var hashValue : Int { return rawValue. hashValue }
1243
+
1244
+ @inlinable
1245
+ public func hash( into hasher: inout Hasher ) {
1246
+ hasher. combine ( rawValue)
1247
+ }
1248
+
1249
+ @inlinable
1250
+ public func _rawHashValue( seed: Int ) -> Int {
1251
+ return rawValue. _rawHashValue ( seed: seed)
1252
+ }
1240
1253
}
1241
1254
1242
1255
/// The IEEE 754 floating-point classes.
Original file line number Diff line number Diff line change @@ -1258,12 +1258,27 @@ extension Unicode {
1258
1258
self . rawValue = rawValue
1259
1259
}
1260
1260
1261
+ public static func == (
1262
+ lhs: CanonicalCombiningClass ,
1263
+ rhs: CanonicalCombiningClass
1264
+ ) -> Bool {
1265
+ return lhs. rawValue == rhs. rawValue
1266
+ }
1267
+
1261
1268
public static func < (
1262
1269
lhs: CanonicalCombiningClass ,
1263
1270
rhs: CanonicalCombiningClass
1264
1271
) -> Bool {
1265
1272
return lhs. rawValue < rhs. rawValue
1266
1273
}
1274
+
1275
+ public var hashValue : Int {
1276
+ return rawValue. hashValue
1277
+ }
1278
+
1279
+ public func hash( into hasher: inout Hasher ) {
1280
+ hasher. combine ( rawValue)
1281
+ }
1267
1282
}
1268
1283
}
1269
1284
You can’t perform that action at this time.
0 commit comments