A trait that can be implemented by any other type in order to support lib0 encoding capability.
Trait used by lib0 encoders. Natively lib0 encoding supports two versions: