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

To me, there’s not much difference between:

  fn foo(name: &str) {}
and*:

  fn foo(name: impl AsRef<str>) {}