3 ms·
That seems the hard way to do backlinks. Backlinks as weak links work. It's not symmetrical, but it's sound. Forward links then must be Rc<RefCell<T>> links, w
by Animats 5y ago
That seems the hard way to do backlinks.
Backlinks as weak links work. It's not symmetrical, but it's sound. Forward links then must be Rc<RefCell<T>> links, while backlinks are Rc<Weak<T>>.
This also generalizes to the thread safe form, Arc<Mutex<T>>.