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

just a question: does bindgen generate the ::new() associated function (or are there plans to do that?)

Open nixomose opened this issue 5 years ago • 3 comments

just a question, didn't see anything in the docs, thought I'd ask here.

nixomose avatar Feb 20 '20 21:02 nixomose

What do you plan to generate and how? I don't think this is easy to do in the general case.

emilio avatar Feb 22 '20 19:02 emilio

@nixomose any updates?

pvdrz avatar Sep 21 '22 20:09 pvdrz

Wow we're going way back here. I don't work on that project anymore so I don't exactly recall what this was about. But I do have some vague memory of the generated code actually already having what I needed so I didn't need ::new(). But I couldn't tell you more than that without an archeological dig to figure out what I was referring to.

nixomose avatar Sep 21 '22 20:09 nixomose