Show
ostrat.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. 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 separating them adds enormous complexity for very little gain.
Attributes
- Graph
- Supertypes
- trait TypeStrclass Any
- Known subtypes
- trait ShowDectrait ShowNtrait ShowDbl2trait ShowElemDbl2class PtM2trait Vec2Likeclass Pt2class Vec2trait length2Mclass Vec2Mclass LatLongtrait ShowElemInt2trait TCoordtrait TCenOrSidetrait TCenclass HCenclass SqCentrait TSideclass HSideclass SqSidetrait HCenOrSidetrait SqCenOrSidetrait TVerttrait HCoordtrait HNotVertclass HCoordOtherclass HVerttrait SqCoordclass SqVertclass Playerobject PlayerA.typeobject PlayerB.typeobject PlayerC.typeobject PlayerD.typeclass HexParrXclass HexParrYclass HexRegImpclass LineSegclass Sqlignclass HGViewtrait HexMemShow[A]class HPlayerclass HSquadclass SqGridViewtrait ShowDbl3trait ShowElemDbl3trait Vec3Likeclass Pt3class Vec3trait AngleLikeclass Angleclass AngleVecclass Latitudeclass Longitudetrait HexRegtrait Hexligntrait ShowNoDectrait ShowSimpletrait Polityobject Macedon.typeobject Rome.typetrait Factionobject Eridu.typeobject Uruk.typeclass Characterobject CharacA.typeobject CharacB.typeobject CharacY.typeobject CharacZ.typetrait DungTerrobject Open.typeobject Wall.typeclass Factionobject Fact1.typeobject Fact2.typetrait WSideobject Lake.typeobject Sea.typetrait WTileclass Landobject SeaIce.typeobject TerrainNone.typetrait Waterobject Turn.typetrait Polityobject Britain.typeobject France.typetrait Polityobject Britain.typeobject France.typeobject Germany.typetrait Polityobject Britain.typeobject France.typeobject Germany.typetrait Polityobject Britain.typeobject France.typeobject Germany.typetrait ZugTerrtrait Buildingobject StoneBuilding.typeobject WoodBuilding.typeobject Hill.typeobject Lake.typeobject Plain.typeobject WheatField.type