PersistShow2

ostrat.PersistShow2
See thePersistShow2 companion object
trait PersistShow2[A1, A2, R <: Show2[A1, A2]] extends Persist2[A1, A2, R] with ShowShow2T[A1, A2, R]

Persist type class for types that extends Show2.

Attributes

Companion:
object
Graph
Supertypes
trait ShowShow2T[A1, A2, R]
trait ShowShowT[R]
trait Persist2[A1, A2, R]
trait PersistN[R]
trait Persist[R]
trait Unshow2[A1, A2, R]
trait TypeStr2[A1, A2]
trait TypeStr2Plus[A1, A2]
trait UnshowN[R]
trait TypeStrN
trait Unshow[R]
trait Show2T[A1, A2, R]
trait ShowNT[R]
trait ShowCompoundT[R]
trait ShowT[R]
trait TypeStr
class Object
trait Matchable
class Any
Known subtypes
class PersistShow2Imp[A1, A2, R]

Members list

Concise view

Value members

Inherited methods

override def ev1: Persist[A1]

The UnShow type class instance for type A1.

The UnShow type class instance for type A1.

Attributes

Definition Classes
Inherited from:
Persist2
override def ev2: Persist[A2]

The UnShow type class instance for type A2.

The UnShow type class instance for type A2.

Attributes

Definition Classes
Inherited from:
Persist2
override def fArg1: R => A1

Attributes

Definition Classes
Inherited from:
ShowShow2T
override def fArg2: R => A2

Attributes

Definition Classes
Inherited from:
ShowShow2T
def findUniqueTFromStatements[ArrT <: Arr[R]](sts: RArr[Statement])(implicit arrBuild: ArrMapBuilder[R, ArrT]): EMon[T]

Finds value of this UnShow type, returns error if more than one match.

Finds value of this UnShow type, returns error if more than one match.

Attributes

Inherited from:
Unshow

Attributes

Inherited from:
Unshow
final override def fromExpr(expr: Expr): EMon[R]

Tries to return a value of the type from an RSON expression Expr that has been parsed from a String or text file. This method must be implemented by all instances.

Tries to return a value of the type from an RSON expression Expr that has been parsed from a String or text file. This method must be implemented by all instances.

Attributes

Definition Classes
Inherited from:
UnshowN
final def fromExprSeq(exprs: RArr[Expr]): EMon[R]

Tries to construct the type from a sequence of parameters using out of order named parameters and default values.

Tries to construct the type from a sequence of parameters using out of order named parameters and default values.

Attributes

Inherited from:
UnshowN
def fromSettingOrExpr(SettingStr: String, expr: Expr): EMon[T]

Attributes

Inherited from:
Unshow
final def fromStatement(st: Statement): EMon[T]

Trys to build an object of type T from the statement.

Trys to build an object of type T from the statement.

Attributes

Inherited from:
Unshow
def keySettingFromStatement[KT](settingCode: KT, st: Statement)(implicit evST: Unshow[KT]): EMon[T]

Finds a setting with a key / code of type KT and a value of the type of this UnShow instance from a [Statement].

Finds a setting with a key / code of type KT and a value of the type of this UnShow instance from a [Statement].

Attributes

Inherited from:
Unshow
def keySettingFromStatements[KT](sts: RArr[Statement], settingCode: KT)(implicit evST: Unshow[KT]): EMon[T]

Finds a key setting with Key type KT of the type of this UnShow instance from an Arr[Statement].

Finds a key setting with Key type KT of the type of this UnShow instance from an Arr[Statement].

Attributes

Inherited from:
Unshow

1st parameter name.

1st parameter name.

Attributes

Inherited from:
TypeStr2Plus

2nd parameter name.

2nd parameter name.

Attributes

Inherited from:
TypeStr2Plus
def newT: (A1, A2) => R

Attributes

Inherited from:
Unshow2
override def numParams: Int

Number of parameter constituents of this class.

Number of parameter constituents of this class.

Attributes

Definition Classes
Inherited from:
TypeStr2
def opt1: Option[A1]

The optional default value for parameter 1.

The optional default value for parameter 1.

Attributes

Inherited from:
TypeStr2Plus
def opt2: Option[A2]

The optional default value for parameter 2.

The optional default value for parameter 2.

Attributes

Inherited from:
TypeStr2Plus
override def paramNames: StrArr

Sequence of the names of parameter constituents of this class.

Sequence of the names of parameter constituents of this class.

Attributes

Definition Classes
Inherited from:
TypeStr2
def settingFromStatements(sts: RArr[Statement], settingStr: String): EMon[T]

Finds an identifier setting with a value type of this UnShow instance from an Arr[Statement].

Finds an identifier setting with a value type of this UnShow instance from an Arr[Statement].

Attributes

Inherited from:
Unshow
def settingTFromStatement(settingStr: String, st: Statement): EMon[T]

Finds an identifier setting with a value of the type of this UnShow instance from a [Statement].

Finds an identifier setting with a value of the type of this UnShow instance from a [Statement].

Attributes

Inherited from:
Unshow
override def showDecT(obj: R, way: ShowStyle, maxPlaces: Int, minPlaces: Int): String

Attributes

Definition Classes
Inherited from:
ShowShowT
override def showT(obj: R, way: ShowStyle): String

Attributes

Definition Classes
Inherited from:
ShowShowT
override def strDecs(obj: R, way: ShowStyle, maxPlaces: Int): StrArr

Attributes

Definition Classes
Inherited from:
ShowShow2T
override def strT(obj: R): 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
Inherited from:
ShowShowT
def strs(obj: R, way: ShowStyle): StrArr

Attributes

Inherited from:
ShowNT
override def syntaxDepthT(obj: R): 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 from:
ShowShowT

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
def valuesFromStatements[ArrT <: Arr[R]](sts: RArr[Statement])(implicit arrBuild: ArrMapBuilder[R, ArrT]): ArrT

Produces an ArrImut of the UnShow type from Statements (Refs[Statement].

Produces an ArrImut of the UnShow type from Statements (Refs[Statement].

Attributes

Inherited from:
Unshow