Generic spatial data structures for Rust