Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
gnatolf
· 1y ago · 0 comments
If only one could construct a macro to solve the boilerplate of AsRef<str> etc ;)
Comments
[–]
LtdJorge
1y ago
To me, there’s not much difference between:
fn foo(name: &str) {}
and*:
fn foo(name: impl AsRef<str>) {}