Re:Type-Level Programming in Rust
by kevincox on Monday October 05, 2020 @02:10PM
(#24690329)
One minor note is that I don't think PhantomData is required here.
Since State is zero-sized it is free to store it in the struct.
IIUC PhantomData is only required when you need to indicate that you are logically storing something of that type but don't want to actually store it. Since storing is free in this case you may as well just store it.
[ Parent
| on HN ]