Incidental
public struct Incidental<T> : Hashable
extension Incidental : Sendable where T: Sendable
A wrapper type signaling that the wrapped value is incidental for the purpose of hashing and equality comparison.
-
The incidental, wrapped value.
Declaration
Swift
public var value: T -
Creates a new wrapper around
value.Declaration
Swift
public init(_ value: T) -
Declaration
Swift
public func hash(into hasher: inout Hasher) -
Declaration
Swift
public static func == (l: `Self`, r: `Self`) -> Bool
View on GitHub