Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If only one could construct a macro to solve the boilerplate of AsRef<str> etc ;)


To me, there’s not much difference between:

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

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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: