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

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.

#rust

threaded - newest

Aras@feddit.org on 28 Jan 19:02 collapse

For a deeper showcase (the complete cgp example adapted): github.com/Aras14HD/abstract_impl_showcase