Abstract Impl: code generic trait implementations
(crates.io)
from Aras@feddit.org to rust@programming.dev on 28 Jan 18:55
https://feddit.org/post/7326044
from Aras@feddit.org to rust@programming.dev on 28 Jan 18:55
https://feddit.org/post/7326044
Inspired by Contex-Generic Programming, I made this macro, that allows you to write those generic implementations easily. This is kinda CGP, but simple and with better errors.
Ever repeat yourself implementing traits? Or wanted to easily swap out parts of your code, with (almost) no need to refactor? That is what this is for.
threaded - newest
For a deeper showcase (the complete cgp example adapted): github.com/Aras14HD/abstract_impl_showcase