ShowDec

trait ShowDec extends 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 ShowDecT type class instance to delegate to this trait 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. The capabilities of decimal place precision and explicit typing for numbers are placed defined here and in the corresponding SHowT type class although they have n meaning / purpose for many types, as seperating them adds enormous complexity for very little gain.

trait Show
trait TypeStr
class Any
trait Show2[A1, A2]
trait ShowDbl2
class PtM2
trait Vec2Like
class Pt2
class Vec2
trait length2M
class Vec2M
class LatLong
class Cood
trait TileCoord
trait TileCen
class HCen
class SqCen
trait TileSide
class HSide
class SqSide
trait TileVert
trait HCoord
trait HNotVert
class HVert
trait SqCoord
class SqVert
class HexParrX
class HexParrY
class HexRegImp
class LineSeg
class Sqlign
class HGridView
trait ShowDec3[A1, A2, A3]
trait ShowDbl3
trait Vec3Like
class Pt3
class Vec3
class Player
object PlayerA.type
object PlayerB.type
object PlayerC.type
object PlayerD.type
trait AngleLike
class Angle
class AngleVec
class Latitude
class Longitude
trait HexReg
trait Hexlign

Value members

Abstract methods

def showDec(style: ShowStyle, maxPlaces: Int, minPlaces: Int): String

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

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

Concrete methods

override def show(style: ShowStyle): String
Definition Classes
def showDec(style: ShowStyle, maxPlaces: Int): String

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

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

override def str: String
Definition Classes
def str0: String

Show with decimal precision of 0 places.

Show with decimal precision of 0 places.

def str1: String

Show with decimal precision of 1 place padding with a zero if necessary.

Show with decimal precision of 1 place padding with a zero if necessary.

def str2: String

Show with decimal precision of 2 places padding with zeros if necessary.

Show with decimal precision of 2 places padding with zeros if necessary.

def str3: String

Show with decimal precision of 3 places padding with zeros if necessary.

Show with decimal precision of 3 places padding with zeros if necessary.

Inherited methods

def syntaxDepth: Int
Inherited from:
Show
override def toString: String
Definition Classes
Show -> Any
Inherited from:
Show
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