3 ms·
1. As your other reply said, crossbeam is Rust's gold-standard for this. 2. Make the front-pointers be Rc's or Arc's, then use the downgrade() method to constr
by mmirate 8y ago
1. As your other reply said, crossbeam is Rust's gold-standard for this.
2. Make the front-pointers be Rc's or Arc's, then use the downgrade() method to construct the back-pointers.
3. Array-based ring buffer instead, perhaps?
4. Like any refactoring, the compiler errors guide you to the places that you haven't yet changed.