3 ms·
Reference counting is not a trick in Rust. The standard Rc type is relatively easy to use and fast (since you can use a thread-unsafe variant safely). The tric
by pornel 9y ago
Reference counting is not a trick in Rust. The standard Rc type is relatively easy to use and fast (since you can use a thread-unsafe variant safely).
The tricky things are only if you want to have 2-way pointers without refcounting overhead.