6 ms·
But if your program is single-threaded, you don’t need an `Rc` type. The whole point of `Rc` and `std::shared_ptr` is so an object can have one owning pointer p
by orneryostrich 6y ago
But if your program is single-threaded, you don’t need an `Rc` type. The whole point of `Rc` and `std::shared_ptr` is so an object can have one owning pointer per thread, in cases where you’re not sure which thread will finish using the object last.
- pjmlp 6y agoSure you do, try to implement a Gtk-rs application without the Rc<RefCell<>> dance for widgets state.