Whats the difference between
my_func<T: MyTrait>(...) {...}
and
my_func<T>(...) where T: MyTrait {...}
?
Whats the difference between
my_func<T: MyTrait>(...) {...}
and
my_func<T>(...) where T: MyTrait {...}
?
One is written with an explicit where
clause, the other isn't.
Okay, okay; if you want to be picky, the differences are:
where
clause.But in terms of what changes when you move constraints from the generic argument list to a where
clause, they're the same.