ShowElemT

trait ShowElemT[R <: Show] 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 Show 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.

Companion
object
trait ShowT[R]
class Object
trait Matchable
class Any
trait Show2ElemT[A1, A2, R]
class Persist2Elem[A1, A2, R]
class Persist2Dbls[R]
class Persist2Ints[R]
trait Show2Base32sT[R]
trait Show2DblsT[R]
trait Show2IntsT[R]

Value members

Concrete methods

override
def showT(obj: R, way: Way, 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

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
PersistBase