by discardable_dan · 1y ago · 0 comments
Option<Rc<RefCell<Node<T>>>>
works, but you have to manage your own teardown of the list. If you use Weak, releasing the strong reference to the head of the list tears down the whole list.I'm not convinced not using `Weak` is better, though.