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