Show

trait Show

A trait for providing an alternative to toString. USing this trait can be convenient, but at some level of the inheritance the type must provide a ShowT type class instance. It is better for the ShowT type class instance to delegate to this trait 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
class Any
trait Show2[A1, A2]
trait TCoord
trait HCoord
class HCen
class HSide
class HVert
trait SqCoord
class SqCen
class SqSide
class SqVert
trait Show2Dbls
class LatLong
class Pt2M
trait Vec2Like
class Pt2
class Vec2
class Vec2M
trait Show2Ints
class Cood
class HexParrX
class HexParrY
class HexRegImp
class LineSeg
class Sqlign
trait Show3[A1, A2, A3]
trait Show3Dbls
trait Vec3Like
class Pt3
class Vec3
trait Polity
object Britain
object France
trait Polity
object Macedon
object Rome
object Turn
trait Faction
object Eridu
object Uruk
class Character
object CharacA
object CharacB
object CharacY
object CharacZ
trait DungTerr
object Open
object Wall
class Faction
object Fac1
object Fac2
trait Polity
object Britain
object France
object Germany
trait Polity
object Britain
object France
object Germany
trait ZugTerr
trait Building
object Hill
object Lake
object Plain
object WheatField
trait AngleLike
class Angle
class AngleVec
class Latitude
class Longitude
trait HexReg
trait Hexlign
class Player
object PlayerA
object PlayerB
object PlayerC
object PlayerD

Value members

Abstract methods

def show(way: Way, maxPlaces: Int, minPlaces: Int): String

Intended to be a multiple parameter comprehensive Show method. Intended to be paralleled by showT method on ShowT type class instances.

Intended to be a multiple parameter comprehensive Show method. Intended to be paralleled by showT method on ShowT type class instances.

def str: String

The most basic Show method, paralleling the strT method on ShowT type class instances.

The most basic Show method, paralleling the strT method on ShowT type class instances.

def syntaxdepth: Int
def typeStr: String

the name of the type of this object.

the name of the type of this object.

Concrete methods

final override def toString: String
Definition Classes
Any