4 ms·
Note that impl is not exactly equivalent. If the type passed in is ambiguous, with an explicit template the caller can disambiguate, but with impl there's no te
by tux3 5y ago
Note that impl is not exactly equivalent. If the type passed in is ambiguous, with an explicit template the caller can disambiguate, but with impl there's no template argument.
So sometimes you still want to use the "old" syntax in your public APIs, even when you could be using an impl trait