This PR implements #681 by adding support for compact enums.
Compact enums work just like compact structs: we don't encode TagEndMarker, and tags cannot be used within the enum.
A compact enum cannot have an underlying type (since they're already 'compact') nor can it be unchecked (since we already don't encode TagEndMarker then).
This PR implements #681 by adding support for compact enums. Compact enums work just like compact structs: we don't encode
TagEndMarker
, and tags cannot be used within the enum.A compact enum cannot have an underlying type (since they're already 'compact') nor can it be unchecked (since we already don't encode
TagEndMarker
then).