Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
devit
· 5y ago · 0 comments
Use a crate that provides safe functions implemented with unsafe code to do that, like
https://docs.rs/splitmut/0.2.1/splitmut/
Comments
[–]
oconnor663
5y ago
Neat! 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.