TypeMapper

nscn.polaris2.protoc.runtime.TypeMapper
See theTypeMapper companion trait
object TypeMapper

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
TypeMapper.type

Members list

Value members

Concrete methods

def apply[Base, Custom](f: Base => Custom)(g: Custom => Base): TypeMapper[Base, Custom]
def summonFor[Base, Custom](using tm: TypeMapper[Base, Custom]): TypeMapper[Base, Custom]

Givens

Givens

given identity: [A] => TypeMapper[A, A]

The identity mapping, so generated code can treat "no mapping" uniformly.

The identity mapping, so generated code can treat "no mapping" uniformly.

Attributes