Re:Rust const generics MVP hits beta
by viraptor on Friday February 26, 2021 @08:40PM
(#26281906)
> where you can then have `Person<Option>` ... This is something I find myself reaching for surprisingly frequently
What's a practical use case for it? It's cool in theory, but I struggle to come up with something that doesn't use at most 2 implementations (just copy the struct then), or some API where the types don't mix and can be generated via a macro instead.
What's a practical use case for it? It's cool in theory, but I struggle to come up with something that doesn't use at most 2 implementations (just copy the struct then), or some API where the types don't mix and can be generated via a macro instead.