Hacker News new | ask | show | jobs
by Rusky 3625 days ago
Rust does have such a syntax: map_err(ToString::to_string).
1 comments

It's not the same though; it can resolve to different methods based on non-local code. It also doesn't do autoborrow.