@@ -74,7 +74,7 @@ internal final class _SwiftNSCharacterSet : _SwiftNativeNSCharacterSet, _SwiftNa
74
74
*/
75
75
public struct CharacterSet : ReferenceConvertible , Equatable , Hashable , SetAlgebra , _MutablePairBoxing {
76
76
public typealias ReferenceType = NSCharacterSet
77
-
77
+
78
78
internal typealias SwiftNSWrapping = _SwiftNSCharacterSet
79
79
internal typealias ImmutableType = SwiftNSWrapping . ImmutableType
80
80
internal typealias MutableType = SwiftNSWrapping . MutableType
@@ -134,19 +134,11 @@ public struct CharacterSet : ReferenceConvertible, Equatable, Hashable, SetAlgeb
134
134
return nil
135
135
}
136
136
}
137
-
137
+
138
138
public var hashValue : Int {
139
139
return _mapUnmanaged { $0. hashValue }
140
140
}
141
141
142
- public var description : String {
143
- return _mapUnmanaged { $0. description }
144
- }
145
-
146
- public var debugDescription : String {
147
- return _mapUnmanaged { $0. debugDescription }
148
- }
149
-
150
142
private init ( reference: NSCharacterSet ) {
151
143
_wrapped = _SwiftNSCharacterSet ( immutableObject: reference)
152
144
}
@@ -469,6 +461,16 @@ extension CharacterSet : _ObjectiveCBridgeable {
469
461
470
462
}
471
463
464
+ extension CharacterSet : CustomStringConvertible , CustomDebugStringConvertible {
465
+ public var description : String {
466
+ return _mapUnmanaged { $0. description }
467
+ }
468
+
469
+ public var debugDescription : String {
470
+ return _mapUnmanaged { $0. debugDescription }
471
+ }
472
+ }
473
+
472
474
extension NSCharacterSet : _HasCustomAnyHashableRepresentation {
473
475
// Must be @nonobjc to avoid infinite recursion during bridging.
474
476
@nonobjc
0 commit comments