I often found myself wanting to specialize a function with a generic argument.
The way I found to do that with the trait specialization feature goes as in the example below. [Rust playground link]
After removing the useless struct : Version simplified by @vitalyd
This pattern works ok but is quite a mouthful.
Is there some other way to get the same result?
Is there an RFC for function specialization?