Idea: Conditional code based on whether a type implements a trait

I suggest you check out this thread from a few days ago: