3 ms·
If only one could construct a macro to solve the boilerplate of AsRef<str> etc ;)
by gnatolf 1y ago
If only one could construct a macro to solve the boilerplate of AsRef<str> etc ;)
- LtdJorge 1y agoTo me, there’s not much difference between: fn foo(name: &str) {} and*: fn foo(name: impl AsRef<str>) {}