- simplify and clarify the auto-traits (_c.f._, #411)
- No more `-` in the auto-traits part
- move `dropck` to its own dedicated column
- Name the `'a` and `T` columns with "variance"
- Emphasize the `cov` _vs._ `inv` _vs._ `contra` distinctions
- Add a mention to the `PhantomPinned` type.
pull/417/head
Daniel Henry-Mantilla2 years agocommitted byGitHub
@ -234,14 +234,18 @@ standard library made a utility for itself called `Unique<T>` which:
Here’s a table of all the wonderful ways `PhantomData` could be used:
Here’s a table of all the wonderful ways `PhantomData` could be used:
| Phantom type | `'a` | `T` | `Send` | `Sync` |
| Phantom type | variance of `'a` | variance of `T` | `Send`/`Sync`<br/>(or lack thereof) | dangling `'a` or `T` in drop glue<br/>(_e.g._, `#[may_dangle] Drop`) |