3 ms·
They're not equivalent, though they are similar. For example, Rust is able to have the Rc/Arc split, allowing for increased performance in single-threaded code
by steveklabnik 10y ago
They're not equivalent, though they are similar.
For example, Rust is able to have the Rc/Arc split, allowing for increased performance in single-threaded code. You can't do that with shared_ptr, or at least, not in a way that's checked like in Rust.