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
226 stars 16 forks source link

Support enums with newtype variant #73

Open taiki-e opened 1 year ago

taiki-e commented 1 year ago

Originally discussed in https://discord.com/channels/500028886025895936/627651185406509067/869996991105626152.

Well, it's fine to accept the newtype variant as a special case, if someone can implement it in pin-project-lite.

Previous work by @Michael-J-Ward: https://github.com/taiki-e/pin-project-lite/pull/63, https://github.com/taiki-e/pin-project-lite/pull/68