You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#[repr(u32)]#[derive(Debug,Copy,Clone,Hash,PartialEq,Eq)]pubenumMyEnum{// E stays as nameMyEnumVariantA = 0,MyEnumVariantB = 1,}pubuseself::MyEnumasFoo;// T stays as alias
If there's no E, then T can be used as convenience?
In the context of enum_variant_name callback, having another argument called enum_alias is enough for people who want to customize the variant names based on alias.
If I run the following code with bindgen version
0.71.1
(latest as of this moment):I get this output:
We should only get the
MyEnum
part. If this is not a bug, then, it should at least be documented in the function docs.Temporary workaround: just do
enum_name.strip_prefix("enum ")
(note the space after the enum keyword).The text was updated successfully, but these errors were encountered: