FieldCompare

@implicitNotFound("Cannot compare ${P} with ${C}")
trait FieldCompare[P, C]

Typeclass that is used to allow using compare syntax with both Field[P] and P itself. Not needed in case Scala 2 support will be dropped in future.

Companion:
object
Source:
FieldCompare.scala
class Object
trait Matchable
class Any
object FieldCompared.type
object ValueCompared.type

Value members

Abstract methods

def show(compared: C): String
def value(c: C): P