Documentation

Lean.Meta.Sym.ObjectPtr

Key for maps and sets that compares objects by address, a safe counterpart of Lean.Ptr. The key holds the object, so it stays alive and its address is not reused while the key exists. Equal values that are different objects are different keys.

Instances For
    @[inline]
    def Lean.Meta.Sym.ObjectPtr.of {α : Sort u_1} (a : α) :

    Returns the key of a. The values of α must not be represented as scalars at runtime (e.g., UInt64, Bool, or enumeration types).

    Equations
    Instances For