Equations
- instToStringId = inferInstanceAs (ToString α)
Equations
- instToStringId_1 = inferInstanceAs (ToString α)
Equations
- instToStringString = { toString := fun (s : String) => s }
Equations
- instToStringSubstring = { toString := fun (s : Substring) => s.toString }
Equations
- instToStringIterator = { toString := fun (it : String.Iterator) => it.remainingToString }
Equations
- instToStringBool = { toString := fun (b : Bool) => bif b then "true" else "false" }
Equations
- instToStringPUnit = { toString := fun (x : PUnit) => "()" }
Equations
- instToStringUnit = { toString := fun (x : Unit) => "()" }
Equations
- instToStringNat = { toString := fun (n : Nat) => n.repr }
Equations
- instToStringPos = { toString := fun (p : String.Pos) => p.byteIdx.repr }
Equations
- instToStringInt = { toString := fun (x : Int) => match x with | Int.ofNat m => toString m | Int.negSucc m => "-" ++ toString m.succ }
Equations
- instToStringChar = { toString := fun (c : Char) => c.toString }
Equations
- instToStringFin n = { toString := fun (f : Fin n) => toString ↑f }
Equations
- instToStringUInt8 = { toString := fun (n : UInt8) => toString n.toNat }
Equations
- instToStringUInt16 = { toString := fun (n : UInt16) => toString n.toNat }
Equations
- instToStringUInt32 = { toString := fun (n : UInt32) => toString n.toNat }
Equations
- instToStringUInt64 = { toString := fun (n : UInt64) => toString n.toNat }
Equations
- instToStringUSize = { toString := fun (n : USize) => toString n.toNat }
Equations
- instToStringFormat = { toString := fun (f : Std.Format) => f.pretty }