Documentation

Lake.Util.Opaque

def POpaque :

An value of unknown type in a specific universe.

Equations
    Instances For
      @[reducible, inline]
      abbrev Opaque :

      An value of unknown type.

      Equations
        Instances For
          opaque POpaque.mk {α : Type u} (a : α) :

          Cast away a value's type and universe.

          @[reducible, inline]
          abbrev Opaque.mk {α : Type u} (a : α) :

          Cast away a value's type and universe.

          Equations
            Instances For
              unsafe def POpaque.cast {α : Type u} (self : POpaque) :
              α

              Cast an opaque value to a specific type.

              This operation is unsafe because there is no guarantee that the opaque value is of type α or it its rea; value can soundly fit inside the opaque value's universe.

              Equations
                Instances For
                  @[reducible, inline]
                  unsafe abbrev POpaque.castTo (α : Type u) (self : POpaque) :
                  α

                  Like cast, but with an explicit type.

                  Equations
                    Instances For