Persist
A convenience trait type class trait for persistence, that combines the ShowDecT and Unshow type classes. Most if not all final classes that inherit from this trait will require type class instances of ShowT and UnShowT to implement PersistDec's members. It is most important that these implicit parameter instances be specified as separate ShowT and UnShowT parameters. Do not combine them into a Persist parameter. There are no implicit instances for Int, Double, List etc in the PersistDec companion object, the Persist components for these standard types will be found in the ShowT and UnShow companion objects.
Value members
Inherited methods
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.
- Inherited from:
- Unshow
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.
- Inherited from:
- Unshow
Trys to build an object of type T from the statement.
Trys to build an object of type T from the statement.
- Inherited from:
- Unshow
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].
- Inherited from:
- Unshow
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].
- Inherited from:
- Unshow
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].
- Inherited from:
- Unshow
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].
- Inherited from:
- Unshow
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.
- Inherited from:
- ShowT
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.
- Inherited from:
- ShowT
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
Produces an ArrImut of the UnShow type from Statements (Refs[Statement].
Produces an ArrImut of the UnShow type from Statements (Refs[Statement].
- Inherited from:
- Unshow