Differ

object Differ
Companion:
class
class Object
trait Matchable
class Any
Differ.type

Type members

Classlikes

object ChunkPatch
Companion:
class
sealed trait ChunkPatch[Value, Patch]

A patch which describes updates to a chunk of values.

A patch which describes updates to a chunk of values.

Companion:
object
object MapPatch
Companion:
class
sealed trait MapPatch[Key, Value, Patch]

A patch which describes updates to a map of keys and values.

A patch which describes updates to a map of keys and values.

Companion:
object
object OrPatch
Companion:
class
sealed trait OrPatch[Value, Value2, Patch, Patch2]

A patch which describes updates to either one value or another.

A patch which describes updates to either one value or another.

Companion:
object
object SetPatch
Companion:
class
sealed trait SetPatch[A]

A patch which describes updates to a set of values.

A patch which describes updates to a set of values.

Companion:
object

Value members

Concrete methods

def chunk[Value, Patch](differ: Differ[Value, Patch]): Differ[Chunk[Value], ChunkPatch[Value, Patch]]

Constructs a differ that knows how to diff a Chunk of values given a differ that knows how to diff the values.

Constructs a differ that knows how to diff a Chunk of values given a differ that knows how to diff the values.

Constructs a differ that knows how to diff ZEnvironment values.

Constructs a differ that knows how to diff ZEnvironment values.

Constructs a differ that knows how to diff IsFatal values.

Constructs a differ that knows how to diff IsFatal values.

def map[Key, Value, Patch](differ: Differ[Value, Patch]): Differ[Map[Key, Value], MapPatch[Key, Value, Patch]]

Constructs a differ that knows how to diff a Map of keys and values given a differ that knows how to diff the values.

Constructs a differ that knows how to diff a Map of keys and values given a differ that knows how to diff the values.

def set[A]: Differ[Set[A], SetPatch[A]]

Constructs a differ that knows how to diff a Set of values.

Constructs a differ that knows how to diff a Set of values.

Constructs a differ that knows how to diff Supervisor values.

Constructs a differ that knows how to diff Supervisor values.

def update[A]: Differ[A, A => A]

Constructs a differ that just diffs two values by returning a function that sets the value to the new value. This differ does not support combining multiple updates to the value compositionally and should only be used when there is no compositional way to update them.

Constructs a differ that just diffs two values by returning a function that sets the value to the new value. This differ does not support combining multiple updates to the value compositionally and should only be used when there is no compositional way to update them.