you don't want to give a mutable reference for any reason but you still want to be able to mutate some part of data
Idk, only know about Arch Mutex?
Mutex is for another matter where you want only one thread access a variable at a time but yeah the book said Mutext for Arc is like Refcell for Rc
Обсуждают сегодня