Encoding awkward types with minimal boilerplate using `withUnsafeBytes`

Image by Ferenc Almasi

History

Synthesised Codable conformance

The problem

Un-synthesisable Codable conformance

Solution: withUnsafeBytes to the rescue!