ShowSum2

ostrat.ShowSum2
See theShowSum2 companion object
abstract class ShowSum2[ST <: AnyRef, A1 <: ST, A2 <: ST]()(implicit val ct1: ClassTag[A1], val ct2: ClassTag[A2]) extends ShowT[ST]

Show class for algebraic sum types. If you are using your own code then Show sum types handled by inheritance.

Attributes

Companion:
object
Graph
Supertypes
trait ShowT[ST]
trait TypeStr
class Object
trait Matchable
class Any
Known subtypes
class PersistSum2[ST, A1, A2]

Members list

Concise view

Value members

Abstract methods

def ev1: ShowT[A1]
def ev2: ShowT[A2]

Concrete methods

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

Attributes

Definition Classes
override def strT(obj: ST): 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: ST): 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

def showT(obj: ST, style: ShowStyle): String

Attributes

Inherited from:
ShowT

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

Implicits

Implicits

implicit val ct1: ClassTag[A1]
implicit val ct2: ClassTag[A2]