Skip to content

Conversation

@dflemstr
Copy link

@dflemstr dflemstr commented Nov 2, 2025

Adds support for fetching the closest ancestor that shares the longest common prefix with the given key. This could be an exact key match, or any prefix of the provided key. Please review the unit test cases for interesting examples.

I'm not committed to the name ancestor; other suggestions are, of course, very welcome!

@johnhurt
Copy link
Collaborator

johnhurt commented Nov 4, 2025

Awesome. Thanks for the contributions. I left some minor comments. Don't worry about the build failures. It looks like I need to update the msrv for pin some packages.

@dflemstr dflemstr requested a review from johnhurt December 3, 2025 21:34
johnhurt pushed a commit that referenced this pull request Dec 11, 2025
---
Add rustdoc for ancestor()
---
Add another test case for ancestor()

Includes-commit: 08e6a18
Includes-commit: 409cacb
Includes-commit: db2ac9d
Replicated-from: #17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants