3 ms·
You don't need any macros, it can be accomplished with the trait system[1], either manually or through auto-deref. Some of the boilerplate could be generalized
by estebank 5y ago
You don't need any macros, it can be accomplished with the trait system[1], either manually or through auto-deref. Some of the boilerplate could be generalized with a derive proc-macro or a macro-by-example call but it is not absolutely necessary.
[1]: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=8829ae8be84b9122aca5173f318505cb https://play.rust-lang.org/?version=stable&mode=debug&editio...
- ldiracdelta 5y agoThank you so much for this.