News for hackers. Stuff that matters.
Re:Rust const generics MVP hits beta by wizzwizz4 on Friday February 26, 2021 @02:13PM (#26278598)
Add an extra generic parameter.

(Also, it shouldn't be Box; you'd want a bog-standard generic newtype for this, not an extra heap allocation.)

Re:Rust const generics MVP hits beta by glittershark on Friday February 26, 2021 @03:17PM (#26279385)
yeah, I picked Box mostly as a pedagogical instance of the identity functor that already exists in the stdlib - in the real world you'd definitely want `struct Identity<F>(F)` instead.