Here's a simple example with storing points in rstar::RTree, and then searching if they're within a distance from a line.
Now, RTree returns me an iterator on the objects. But they're pure geometry without meta info, like IDs.
I could actually just make a HashMap<Point/Rect, MyIDType> and call HashMap.get(...), but neither rstar::Rectangle, nor geo::Point can be hashed (and both the type & trait aren't mine, I can't impl them).
The only possible solution seems to implement own RTreeObject type with id inside.