2 ms·
Rust-the-language doesn’t know anything about multiple ownership. The standard library refcounted types don’t do anything special, if you get a cycle you leak.
by steveklabnik 6y ago
Rust-the-language doesn’t know anything about multiple ownership.
The standard library refcounted types don’t do anything special, if you get a cycle you leak. You can use weak refcounts to try and prevent this.