sumtype: add list of examples to module doc

This will hopefully make it easier for readers to notice that all of
these examples exist.
This commit is contained in:
Paul Backus 2024-05-30 23:57:54 -04:00
parent 1aa99f8e3f
commit ed91e50deb

View file

@ -11,6 +11,15 @@ include:
* No dependency on runtime type information (`TypeInfo`).
* Compatibility with BetterC.
$(H3 List of examples)
* [Basic usage](#basic-usage)
* [Matching with an overload set](#matching-with-an-overload-set)
* [Recursive SumTypes](#recursive-sumtypes)
* [Memory corruption](#memory-corruption) (why assignment can be `@system`)
* [Avoiding unintentional matches](#avoiding-unintentional-matches)
* [Multiple dispatch](#multiple-dispatch)
License: Boost License 1.0
Authors: Paul Backus
Source: $(PHOBOSSRC std/sumtype.d)