Hacker News new | ask | show | jobs
by ealhad 2084 days ago
In Rust, you have a Cow. It's smart and allows you to clone borrowed things, including things which can moo.
1 comments

But only clones on write, which is a useful optimization.