pub unsafe trait VariantInfo { fn variant_info(&self) -> Variant; }
Implemented for an enum via ffi_type allows us to translate a variant into its meta information.
ffi_type
This trait must be implemented correctly, or else the generated bindings disagree on variant values with their Rust counterparts, leading to UB when invoked with non-existent numbers.