Y
Hacker News
new
|
ask
|
show
|
jobs
by
gnatolf
242 days ago
If only one could construct a macro to solve the boilerplate of AsRef<str> etc ;)
1 comments
LtdJorge
242 days ago
To me, there’s not much difference between:
fn foo(name: &str) {}
and*:
fn foo(name: impl AsRef<str>) {}
link