I switched Rc's to Arc's and RefCell's to Mutex's so that everything can be moved to a thread.
I also switched one instance of into_iter() to iter() to please the new compiler's warning.
Caveat: this comes with trade-offs that this project may not want. Mutexes can deadlock if not treated will (see the implementation of PartialEq for one instance where I had to already get around that).
Also, Arc's are more expensive than Rc's.
I fully understand if this project does not want these things, but if so, enjoy! :)
I switched Rc's to Arc's and RefCell's to Mutex's so that everything can be moved to a thread. I also switched one instance of into_iter() to iter() to please the new compiler's warning.
Caveat: this comes with trade-offs that this project may not want. Mutexes can deadlock if not treated will (see the implementation of PartialEq for one instance where I had to already get around that).
Also, Arc's are more expensive than Rc's.
I fully understand if this project does not want these things, but if so, enjoy! :)