The structural encode protocol: types that can convert themselves to CBOR.
cbor() dispatches on it, following the toJSON precedent.
Tagged types conventionally also keep cborTags() / untaggedCbor() /
taggedCbor() as ordinary members and implement toCbor() as
return this.taggedCbor();.
The structural encode protocol: types that can convert themselves to CBOR.
cbor()dispatches on it, following thetoJSONprecedent.Tagged types conventionally also keep
cborTags()/untaggedCbor()/taggedCbor()as ordinary members and implementtoCbor()asreturn this.taggedCbor();.