Re:What Rust Can Do That Other Languages Can't
by cesarb on Monday February 06, 2017 @07:49AM
(#13578950)
There's petgraph (https://crates.io/crates/petgraph), which uses integers as node and edge indexes, instead of pointers. That is a common trick to work around the borrow checker: instead of pointers into a data structure, store an index into that data structure.
[ Parent
| on HN ]