mirror of
https://github.com/pointfreeco/swift-composable-architecture.git
synced 2025-12-14 20:35:56 +01:00
* wip * wip * Update Testing.md * wip * wip * wip * wip * wip: * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * disable library evolution * bump * wip --------- Co-authored-by: Brandon Williams <mbrandonw@hey.com>
38 lines
865 B
Swift
38 lines
865 B
Swift
public struct _HashableStaticString: RawRepresentable {
|
|
public let rawValue: StaticString
|
|
|
|
public init(rawValue: StaticString) {
|
|
self.rawValue = rawValue
|
|
}
|
|
}
|
|
|
|
extension _HashableStaticString: ExpressibleByStringLiteral {
|
|
public init(stringLiteral value: StaticString) {
|
|
self.init(rawValue: value)
|
|
}
|
|
}
|
|
|
|
extension _HashableStaticString: CustomStringConvertible {
|
|
public var description: String {
|
|
rawValue.description
|
|
}
|
|
}
|
|
|
|
extension _HashableStaticString: CustomDebugStringConvertible {
|
|
public var debugDescription: String {
|
|
rawValue.debugDescription
|
|
}
|
|
}
|
|
|
|
extension _HashableStaticString: Equatable {
|
|
public static func == (lhs: Self, rhs: Self) -> Bool {
|
|
lhs.description == rhs.description
|
|
}
|
|
}
|
|
|
|
extension _HashableStaticString: Hashable {
|
|
public func hash(into hasher: inout Hasher) {
|
|
hasher.combine(description)
|
|
}
|
|
}
|