HashableBox
public struct HashableBox<Witness> : Hashable where Witness : HashableWitness
extension HashableBox: Sendable where Witness.Element: Sendable
A wrapper implementing a value’s conformance to Hashable with a custom witness.
-
The value wrapped by this instance.
Declaration
Swift
public let base: Witness.Element -
Creates a new instance wrapping
base.Declaration
Swift
public init(_ base: Witness.Element) -
Declaration
Swift
public func hash(into hasher: inout Hasher) -
Declaration
Swift
public static func == (l: `Self`, r: `Self`) -> Bool
View on GitHub