You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
461 B
16 lines
461 B
//
|
|
// Copyright © 2019 Swinject Contributors. All rights reserved.
|
|
//
|
|
|
|
/// Unique identifier of an object graph during a resolution process.
|
|
public final class GraphIdentifier {}
|
|
|
|
extension GraphIdentifier: Equatable, Hashable {
|
|
public static func == (lhs: GraphIdentifier, rhs: GraphIdentifier) -> Bool {
|
|
return lhs === rhs
|
|
}
|
|
|
|
public func hash(into hasher: inout Hasher) {
|
|
hasher.combine(ObjectIdentifier(self).hashValue)
|
|
}
|
|
}
|