pub unsafe trait VariantInfo {
    // Required method
    fn variant_info(&self) -> Variant;
}
Expand description

Implemented for an enum via ffi_type allows us to translate a variant into its meta information.

§Safety

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.

Required Methods§

Implementors§