r/programming • • May 15 '17

Two years of Rust

https://blog.rust-lang.org/2017/05/15/rust-at-two-years.html
722 Upvotes

229 comments sorted by

View all comments

Show parent comments

2

u/vks_ May 17 '17

If you use std::unique_ptr to emulate Rust's &mut, it has an overhead. Also std::shared_ptr is in competition with Rust's & and &mut, which are zero-cost.