Show2

trait Show2[A1, A2] extends ShowProduct

Trait for Show for a product of 2 logical elements. This trait is implemented directly by the type in question, unlike the corresponding Show2T trait which externally acts on an object of the specified type to create its String representations. For your own types it is better to inherit from Show2 and then use Show2ElemT or Persist2ElemT to create the type class instance for ShowT. The Show2ElemT or Persist2Elem class will delegate to Show2 for some of its methods. It is better to use Show2 to override toString method than delegating the toString override to a Show2T instance.

trait Show
class Any
trait TCoord
trait HCoord
class HCen
class HSide
class HVert
trait SqCoord
class SqCen
class SqSide
class SqVert
trait Show2Dbls
class LatLong
class PtMetre2
trait Vec2Like
class Pt2
class Vec2
trait length2M
class Vec2M
trait Show2Ints
class Cood
class HexParrX
class HexParrY
class HexRegImp
class LineSeg
class Sqlign

Value members

Abstract methods

def name1: String

the name of the 1st element of this 2 element product.

the name of the 1st element of this 2 element product.

def name2: String

the name of the 2nd element of this 2 element product.

the name of the 2nd element of this 2 element product.

def show1: A1

Element 1 of this Show 2 element product.

Element 1 of this Show 2 element product.

def show2: A2

Element 2 of this Show 2 element product.

Element 2 of this Show 2 element product.

Concrete methods

def shows(way: Way, decimalPlaces: Int): Strings

Inherited methods

override
def show(way: Way, maxPlaces: Int, minPlaces: Int): String
Definition Classes
Inherited from
ShowProduct
override
def str: String
Definition Classes
Inherited from
ShowProduct
def syntaxdepth: Int
Inherited from
Show
override
def toString: String
Definition Classes
Show -> Any
Inherited from
Show
def typeStr: String

the name of the type of this object.

the name of the type of this object.

Inherited from
Show

Implicits

Implicits

implicit
def showT1: ShowT[A1]

The ShowT type class instance for the 1st element of this 2 element product.

The ShowT type class instance for the 1st element of this 2 element product.

implicit
def showT2: ShowT[A2]

The ShowT type class instance for the 2nd element of this 2 element product.

The ShowT type class instance for the 2nd element of this 2 element product.