Skip to content

Commit

Permalink
Enum support
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Sep 21, 2020
1 parent 9579d1e commit 90d81aa
Show file tree
Hide file tree
Showing 11 changed files with 797 additions and 16 deletions.
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@ This is the **only** reason to use this crate. However, **if you already have pr

This macro does not handle any invalid input. So error messages are not to be useful in most cases. If you do need useful error messages, then upon error you can pass the same input to [pin-project] to receive a helpful description of the compile error.

### Different: Structs only

pin-project-lite will refuse anything other than a braced struct with named fields. Enums and tuple structs are not supported.

### Different: No support for custom Drop implementation

pin-project supports this by [`#[pinned_drop]`][pinned-drop].
Expand All @@ -84,12 +80,11 @@ pin-project supports this by [`#[pinned_drop]`][pinned-drop].

pin-project supports this by [`UnsafeUnpin`][unsafe-unpin] and [`!Unpin`][not-unpin].

### Different: No support for pattern matching and destructing
### Different: No support for tuple structs and tuple variants

[pin-project supports this.][naming]
pin-project supports this.

[`pin_project!`]: https://docs.rs/pin-project-lite/0.1/pin_project_lite/macro.pin_project.html
[naming]: https://docs.rs/pin-project/0.4/pin_project/attr.pin_project.html
[not-unpin]: https://docs.rs/pin-project/0.4/pin_project/attr.pin_project.html#unpin
[pin-project]: https://github.com/taiki-e/pin-project
[pinned-drop]: https://docs.rs/pin-project/0.4/pin_project/attr.pin_project.html#pinned_drop
Expand Down
Loading

0 comments on commit 90d81aa

Please sign in to comment.