georust / rstar

R*-tree spatial index for the Rust ecosystem
https://docs.rs/rstar
Apache License 2.0
396 stars 67 forks source link

Implement Point for Rc<dyn RTreeObject> #29

Closed categulario closed 3 years ago

categulario commented 4 years ago

Firsts of all thanks for this amazing crate. I'm already using it in two of my projects.

The problem I have is that I'd like to have my objects referenced through an Rc pointer while being inside the RTree but the compiler complains saying that:

the trait boundstd::rc::Rc: rstar::point::Pointis not satisfied

Without the Rc<_> it works perfectly. If you think this is something reasonable and can give me some advice I can even try to make a contribution ot this repo with that.

Thanks

categulario commented 4 years ago

I just realized that this might actually be the wrong question. I'll leave here just to see if there's a relevant comment to be made and eventually close it.

rmanoka commented 3 years ago

@categulario is this resolved? Otherwise, could you provide a MWE explaining the issue / use-case?

categulario commented 3 years ago

I think I solved it in some other way.