10 ms·
Use a crate that provides safe functions implemented with unsafe code to do that, like https://docs.rs/splitmut/0.2.1/splitmut/ https://docs.rs/splitmut/0.2.1/s
by devit 5y ago
Use a crate that provides safe functions implemented with unsafe code to do that, like https://docs.rs/splitmut/0.2.1/splitmut/ https://docs.rs/splitmut/0.2.1/splitmut/
- oconnor663 5y agoNeat! I bet we could add a macro to that crate to make it work with any (static) number of references. A variant of this using a HashSet to check arbitrary collections of keys might be cool too.