While it's in a separate crate, AtomicRefCell seems like a very useful addition here as it expresses slightly different guarantees than Mutex / RWLock, and in the situations where it can be used it has a lot less overhead.
https://docs.rs/atomic_refcell
While it's in a separate crate,
AtomicRefCellseems like a very useful addition here as it expresses slightly different guarantees thanMutex/RWLock, and in the situations where it can be used it has a lot less overhead.https://docs.rs/atomic_refcell