Skip to content
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

feat: add slices to keys implementations #72

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vlopes11
Copy link

@vlopes11 vlopes11 commented Mar 5, 2023

Prior to this commit, we provided implementations only for Vec. However, the exact same implementation can be easily extended to slices, as both types are almost transparent.

This commit introduces such implementation. It will allow the user to query a radix tree that has a key of integers as key, using a slice of integers. That is possible because the get fucntion will accept anything that the key borrows to, and vec borrows to slice natively.

Prior to this commit, we provided implementations only for `Vec`.
However, the exact same implementation can be easily extended to slices,
as both types are almost transparent.

This commit introduces such implementation. It will allow the user to
query a radix tree that has a key of integers as key, using a slice of
integers. That is possible because the get fucntion will accept anything
that the key borrows to, and vec borrows to slice natively.
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.

None yet

1 participant