Comment Comment by ForkMeOnTinder Good advice, though I'd recommend Rc<RefCell<T>> instead of Arc<Mutex<T>> if you're not sharing the data between threads, to avoid synchronization overhead. I use Arc pretty rarely. parent ForkMeOnTinder 2 years ago