AutoDerivation

difflicious.generic.AutoDerivation
trait AutoDerivation extends DifferGen

Attributes

Graph
Supertypes
trait DifferGen
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def fallback[T]: Differ[T]

Inherited methods

inline def derived[T]: Differ[T]

Attributes

Inherited from:
DifferGen
inline def derivedDeep[T]: Differ[T]

Derives a Differ for T, recursively deriving any missing field Differ instances.

Derives a Differ for T, recursively deriving any missing field Differ instances.

Unlike derived, this does not require every field's Differ to already be in implicit scope. If a field instance is available, that instance is used. Otherwise, Difflicious attempts to derive the missing field instance and then lets ordinary implicit search build the field Differ. This means existing instances such as collection, option, either, tuple, or user-defined instances still take precedence over structural derivation of those types.

Use this when you want semi-automatic derivation at a specific call site without enabling difflicious.generic.auto for the surrounding scope.

Attributes

Inherited from:
DifferGen

Givens

Givens

inline given autoDerivedDiffer: [T] => Differ[T]