Whether this tree should be highlighted during visualization
The identifier for this tree.
The identifier for this tree.
Note that this is unique only for RefTree.Ref. For RefTree.Null it is always null,
and value (RefTree.Val) identifiers are shared across all equivalent values.
Convert to a field usable in other trees
Add or remove highlighting
A RefTree represents the object tree of an immutable data structure. Mutable data can be represented as well, as long as it is acyclic.
A RefTree has three subtypes:
null.This type is mainly geared towards visualization of structural sharing, however in some cases the representation can be simplified for the benefit of the visualization. For example, reftree.contrib.SimplifiedInstances contains “black box” representations of List, Seq and Map that do not expose the internal structure.
A RefTree for a type
Acan be obtained using the ToRefTree typeclass.