2 ms·
I don't think so, at least until specialisation lands. When used as generic constraints they're statically dispatched which might mean better performances, but
by masklinn 11y ago
I don't think so, at least until specialisation lands.
When used as generic constraints they're statically dispatched which might mean better performances, but I believe the JVM is pretty good at devirtualisation so YMMV…
The only advantage I can think of is probably a lack of surprise when trying to use reflection and discovering your generic types are missing (but that's because there is no reflection in rust)