Generics and the Art of Inference Part 2 of 3

Our example this round will be constructing/deconstructing a struct to and from a Dictionary.

Here is the basic definition of the struct we would like to encode/decode. We can define a protocol for this as simply:

Now we can extend our type to implement these, but before we do that let’s extend some […]