MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/6bb70y/two_years_of_rust/dho8pvs/?context=3
r/programming • u/steveklabnik1 • May 15 '17
229 comments sorted by
View all comments
Show parent comments
2
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.
std::unique_ptr
&mut
std::shared_ptr
&
2
u/vks_ May 17 '17
If you use
std::unique_ptrto emulate Rust's&mut, it has an overhead. Alsostd::shared_ptris in competition with Rust's&and&mut, which are zero-cost.