Attributes
Members list
Type members
Classlikes
Attributes
- Supertypes
-
trait DiffTreetrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait DiffTreetrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- trait
- Supertypes
- Self type
-
DiffOutcome.type
Inherited and Abstract types
The names of the product elements
The name of the type
Value members
Concrete methods
Constructs a DiffTree from two MerkleTree instances. The trees must have the same structure, with nodes and leaf labels being the same, otherwise this function will produce divergence error.
Constructs a DiffTree from two MerkleTree instances. The trees must have the same structure, with nodes and leaf labels being the same, otherwise this function will produce divergence error.
The resulting tree won't necessarily contain the same node structure as the input trees. The focus is on showcasing differences, so the tree is constructed lazily, accumulating differences as early as possible – early meaning "as close to the root as possible"
Value parameters
- after
-
the "after" version of the tree
- before
-
the "before" version of the tree
Attributes
Renders a DiffTree as a vector of strings, with optional color highlighting. This is not a serialisation mechanism, the tree cannot be read back from this representation.
Renders a DiffTree as a vector of strings, with optional color highlighting. This is not a serialisation mechanism, the tree cannot be read back from this representation.
Value parameters
- colors
-
whether to use color highlighting
- tree
-
the tree to render
Attributes
- Returns
-
a vector of strings representing the rendered tree