ObjectIdentifier
A unique identifier for a class instance, actor instance, or metatype.
Declaration
@frozen struct ObjectIdentifierOverview
This unique identifier is valid for comparisons only during the lifetime of the instance.
In Swift, only instances of classes, instances of actors, and metatypes have unique identities. There’s no notion of identity for structures, enumerations, functions, or tuples.