-
Notifications
You must be signed in to change notification settings - Fork 71
Update rtree object: impl RTreeObject for Arc and Rc #211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
This seems reasonable. Should we include implementations for other smart pointer types (at least Rc)? |
|
Hi, I originally wanted to implement something like this: impl<P, T> RTreeObject for P
where
P: Deref<Target = T> + Drop,
T: RTreeObject + ?Sized,or impl<P, T> RTreeObject for P
where
P: Borrow<T> + Drop,
T: RTreeObject + ?Sized,However, it conflicts with the existing implementations. Do you have any suggestions on how to handle this more cleanly? Thanks! |
What is the conflict? Can the conflicting implementation be subsumed under a more general one? |
|
Right now, the known conflicts include things like: pub struct CachedEnvelope<T: RTreeObject> and impl<P> RTreeObject for P
where
P: Point,These overlap with the more generic |
8ceb7d7 to
2432618
Compare
2432618 to
8d9b1a1
Compare
michaelkirk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Arc/Rc impls look good to me.
re: adding Cargo.lock - personally I'm in favor of checking in Cargo.lock, but it could generate some discussion, so let's put that in a separate commit and PR.
8d9b1a1 to
e66b66f
Compare
As you can see, ignoring the Cargo.lock file causes the test case Should we update the CI test case to handle this, or would it be better to commit the Cargo.lock file first? Note: This issue has already been resolved in PR #213, where the Cargo.lock file is included. |
13c0ba9 to
7069e12
Compare
|
Can you please update the changelog and remove your changes to .gitignore |
7069e12 to
805590f
Compare
805590f to
2dd8003
Compare
rstar/CHANGELOG.mdif knowledge of this change could be valuable to users.