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

Support `const fn new`

Open mcarton opened this issue 4 years ago • 0 comments

const traits aren't stable yet, but we could make the new function we optionally generate with derivative(Debug) const.

We wouldn't be able to use Default::default() for each field though, so it might not work for that many things.

mcarton avatar Jan 11 '21 23:01 mcarton