Skip to content

feat: add slices to keys implementations#72

Open
vlopes11 wants to merge 1 commit into
michaelsproul:masterfrom
vlopes11:vlopes11-key-slice
Open

feat: add slices to keys implementations#72
vlopes11 wants to merge 1 commit into
michaelsproul:masterfrom
vlopes11:vlopes11-key-slice

Conversation

@vlopes11

@vlopes11 vlopes11 commented Mar 5, 2023

Copy link
Copy Markdown

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.
@vlopes11 vlopes11 force-pushed the vlopes11-key-slice branch from 1603b27 to 5bfb306 Compare March 6, 2023 15:04
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.

1 participant