Abstract Impl: code generic trait implementations
(crates.io)
from Aras@feddit.org to rust@lemmy.ml on 28 Jan 18:59
https://feddit.org/post/7326366
from Aras@feddit.org to rust@lemmy.ml on 28 Jan 18:59
https://feddit.org/post/7326366
cross-posted from: 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