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

2 years ago
  1. //
  2. // Copyright © 2019 Swinject Contributors. All rights reserved.
  3. //
  4. /// Unique identifier of an object graph during a resolution process.
  5. public final class GraphIdentifier {}
  6. extension GraphIdentifier: Equatable, Hashable {
  7. public static func == (lhs: GraphIdentifier, rhs: GraphIdentifier) -> Bool {
  8. return lhs === rhs
  9. }
  10. public func hash(into hasher: inout Hasher) {
  11. hasher.combine(ObjectIdentifier(self).hashValue)
  12. }
  13. }