ShowShowT

ostrat.ShowShowT
See theShowShowT companion object
trait ShowShowT[R <: ShowDec] extends ShowT[R]

A sub trait of the ShowT 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 ShowT type class instance in the companion object. Potentially that can create initialisation order problems, but at the very least it can increase compile times.

Attributes

Companion:
object
Graph
Supertypes
trait ShowT[R]
trait TypeStr
class Object
trait Matchable
class Any
Known subtypes
trait ShowShow2T[A1, A2, R]
trait PersistShow2[A1, A2, R]
class PersistShow2Imp[A1, A2, R]
class ShowShow2TImp[A1, A2, R]
trait ShowShowDbl2T[R]
trait ShowShowInt2T[R]
trait ShowShowNT[R]
trait PersistShowN[R]
trait PersistShow3[A1, A2, A3, R]
class PersistShow3Imp[A1, A2, A3, R]
trait ShowShow3T[A1, A2, A3, R]
trait ShowShowDbl3T[R]

Members list

Concise view

Value members

Concrete methods

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

Attributes

Definition Classes
override def showT(obj: R, way: ShowStyle): String

Attributes

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.

Attributes

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.

Attributes

Definition Classes

Inherited methods

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.

Attributes

Inherited from:
TypeStr