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