rust-bindgen icon indicating copy to clipboard operation
rust-bindgen copied to clipboard

Option to wrap union members in ManuallyDrop

Open poliorcetics opened this issue 3 years ago • 2 comments

Adds the option to wrap members of union where at least one is Non-Copy in ::core::mem::ManuallyDrop instead of the generated __BindgenUnionWrapper, with the approriate CLI and API options (default, regex for ManuallyDrop/ __BindgenUnionWrapper).

poliorcetics avatar Apr 05 '22 09:04 poliorcetics

Failing test is due to a connection error.

poliorcetics avatar Apr 05 '22 09:04 poliorcetics

Sorry for the long wait, I rebased and fixed your comment

poliorcetics avatar Jun 09 '22 15:06 poliorcetics