taiki-e / pin-project-lite

A lightweight version of pin-project written with declarative macros.
https://docs.rs/pin-project-lite
Apache License 2.0
216 stars 15 forks source link

[WIP] Newtype Variant #68

Closed Michael-J-Ward closed 3 years ago

Michael-J-Ward commented 3 years ago

This enables newtype variants.

All tests passing sans UI tests.

I'm just initiating this pull request for you to give a general approve / disapprove judgement. If you approve, I'll break it down into more digestible chunks instead of 1 big request.

Note: From this design I could also provide some support for field attributes under the constraint that #[pin] must appear first when it is used.