Documentation

Init.Data.ToString.Basic

class ToString (α : Type u) :

Types that can be converted into a string for display.

There is no expectation that the resulting string can be parsed back to the original data (see Repr for a similar class with this expectation).

  • toString : αString

    Converts a value into a string.

Instances
    @[implicit_reducible]
    instance instToStringId {α : Type u_1} [ToString α] :
    Equations
    @[implicit_reducible]
    instance instToStringId_1 {α : Type u_1} [ToString α] :
    Equations
    @[implicit_reducible]
    Equations
    @[implicit_reducible]
    Equations
    @[implicit_reducible]
    Equations
    @[implicit_reducible]
    Equations
    @[implicit_reducible]
    Equations
    @[implicit_reducible]
    Equations
    @[implicit_reducible]
    instance instToStringULift {α : Type u} [ToString α] :
    Equations
    @[implicit_reducible]
    Equations
    @[implicit_reducible]
    Equations
    @[implicit_reducible]
    Equations
    @[implicit_reducible]
    instance instToStringFin (n : Nat) :
    Equations
    @[implicit_reducible]
    Equations
    @[implicit_reducible]
    Equations
    @[implicit_reducible]
    Equations
    @[implicit_reducible]
    Equations
    @[implicit_reducible]
    Equations
    @[implicit_reducible]
    Equations
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      @[implicit_reducible]
      instance instToStringOption {α : Type u} [ToString α] :
      Equations
      • One or more equations did not get rendered due to their size.
      @[implicit_reducible]
      instance instToStringSum {α : Type u} {β : Type v} [ToString α] [ToString β] :
      ToString (α β)
      Equations
      • One or more equations did not get rendered due to their size.
      @[implicit_reducible]
      instance instToStringProd {α : Type u} {β : Type v} [ToString α] [ToString β] :
      ToString (α × β)
      Equations
      • One or more equations did not get rendered due to their size.
      @[implicit_reducible]
      instance instToStringSigma {α : Type u} {β : αType v} [ToString α] [(x : α) → ToString (β x)] :
      Equations
      • One or more equations did not get rendered due to their size.
      @[implicit_reducible]
      instance instToStringSubtype {α : Type u} {p : αProp} [ToString α] :
      Equations
      @[implicit_reducible]
      instance instToStringExcept {ε : Type u_1} {α : Type u_2} [ToString ε] [ToString α] :
      Equations
      • One or more equations did not get rendered due to their size.
      @[implicit_reducible]
      instance instReprExcept {ε : Type u_1} {α : Type u_2} [Repr ε] [Repr α] :
      Repr (Except ε α)
      Equations
      • One or more equations did not get rendered due to their size.