79524745

Date: 2025-03-21 07:04:33
Score: 3.5
Natty:
Report link

Thanks very much kmdreko for your detailed response @kmdreko.

After trying to implement diesel::delete generically, I decided to give up on this approach - it's too much work trying to correctly specify all the trait bounds.

In the end what I decided to do is to move all generic portions of the Table trait into a supertrait called GenericTable. Then, I wrote a macro to implement all the functions in GenericTable along the lines that @Ross Rogers suggested.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • No code block (0.5):
  • User mentioned (1): @kmdreko
  • User mentioned (0): @Ross
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: David Hankins