StructureSwift

    ObjectIdentifier

    A unique identifier for a class instance or metatype.

    @frozen struct ObjectIdentifier

    Overview

    This unique identifier is only valid for comparisons during the lifetime of the instance.

    In Swift, only class instances and metatypes have unique identities. There is no notion of identity for structs, enums, functions, or tuples.

    Members

    Initializers

    • init(AnyObject)

      Creates an instance that uniquely identifies the given class instance.

    • init(Any.Type)

      Creates an instance that uniquely identifies the given metatype.

    Instance Properties

    Instance Methods

    Type Operators