ShowShowT

trait ShowShowT[R <: ShowDec] extends ShowDecT[R]

A sub trait of the ShowDecT sub class where the type parameter of ShowT extends Show. This allows the ShowT type class to delegate to the Show class for the implementation of its strT and ShowT methods. It is better to use ShowDec and ShowElemT for types you control than have the toString method delegate to the ShowDecT type class instance in the companion object. Potentially that can create initialisation order problems, but at the very least it can increase compile times.

Companion:
object
trait ShowDecT[R]
trait ShowT[R]
trait TypeStr
class Object
trait Matchable
class Any
trait ShowShow2T[A1, A2, R]
trait PersistShow2[A1, A2, R]
class PersistShow2Imp[A1, A2, R]
object CoodPersist.type
class ShowShow2TImp[A1, A2, R]
trait ShowShowDbl2T[R]
trait ShowShowInt2T[R]
trait ShowShowDec3T[A1, A2, A3, R]
trait PersistShow3[A1, A2, A3, R]
class PersistShow3Imp[A1, A2, A3, R]
trait ShowShowDbl3T[R]

Value members

Concrete methods

override def showDecT(obj: R, way: ShowStyle, maxPlaces: Int, minPlaces: Int): String
Definition Classes
override def strT(obj: R): String

Provides the standard string representation for the object. Its called ShowT to indicate this is a type class method that acts upon an object rather than a method on the object being shown.

Provides the standard string representation for the object. Its called ShowT to indicate this is a type class method that acts upon an object rather than a method on the object being shown.

Definition Classes
override def syntaxDepthT(obj: R): Int

Simple values such as Int, String, Double have a syntax depth of one. A Tuple3[String, Int, Double] has a depth of 2. Not clear whether this should always be determined at compile time or if sometimes it should be determined at runtime.

Simple values such as Int, String, Double have a syntax depth of one. A Tuple3[String, Int, Double] has a depth of 2. Not clear whether this should always be determined at compile time or if sometimes it should be determined at runtime.

Definition Classes

Inherited methods

override def showT(obj: R, style: ShowStyle): String
Definition Classes
Inherited from:
ShowDecT
def typeStr: String

The RSON type of T. This the only data that a ShowT instance requires, that can't be implemented through delegation to an object of type Show.

The RSON type of T. This the only data that a ShowT instance requires, that can't be implemented through delegation to an object of type Show.

Inherited from:
TypeStr