I think it has come out quite nicely. In particular, removing the duplicated specification of the output field variables now means it's not possible to accidentally get the unnesting and copying information out of step.
But if you prefer the code the way it is, please do feel free to say so and just close this MR.
RFC, as discussed in https://github.com/colin-kiegel/rust-derive-builder/pull/241#issuecomment-1069346362 . It seemed better to demonstrate it rather than talk in the abstract.
I think it has come out quite nicely. In particular, removing the duplicated specification of the output field variables now means it's not possible to accidentally get the unnesting and copying information out of step.
But if you prefer the code the way it is, please do feel free to say so and just close this MR.