Hacker News new | ask | show | jobs
by woodruffw 1266 days ago
> Maybe rust needs an asBorrow or similar?

FWIW, the `Borrow`, `AsRef`, and `Deref` traits all exist to support different variants of this.