@dotstdy the problem with that approach, if I understand it correctly, is that it isn't compile-time. From Lina's post, I somehow thought that there's a compile-time way to do that.
@lina
@iliazeus @lina there's not a compile time way to achieve it in rust currently.
@dotstdy @iliazeus Yes there is, although it's a hack ^^
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=2b71add3fc288b4c4dc1d169906150a1
@iliazeus @lina there's not a compile time way to achieve it in rust currently.