Skip to content

feat(indexmap): added get_index, get_index_mut and get_index_of #525

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

Merged

Conversation

pamburus
Copy link
Contributor

@pamburus pamburus commented Dec 28, 2024

This adds get_index, get_index_mut and get_index_of methods to IndexMap.

See corresponding get_index, get_index_mut and get_index_of in the indexmap crate.

Related pull requests:

@pamburus pamburus force-pushed the feature/indexmap/get-index branch 2 times, most recently from ce551be to 6be3e66 Compare December 28, 2024 08:35
@pamburus pamburus changed the title feat(indexmap): added get_index and get_index_mut feat(indexmap): added get_index, get_index_mut and get_index_of Dec 28, 2024
@pamburus pamburus force-pushed the feature/indexmap/get-index branch from 6be3e66 to de9e7ac Compare December 28, 2024 08:44
@Dirbaio
Copy link
Member

Dirbaio commented Jan 2, 2025

Thanks for the PR. Could you add tests?

@pamburus
Copy link
Contributor Author

The tests are in the doc comments and they are passing.
Isn't that enough?
I cannot find any other tests for the index map in the project.

reitermarkus
reitermarkus previously approved these changes Apr 6, 2025
Copy link
Member

@reitermarkus reitermarkus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd say the doc tests are enough.

@reitermarkus reitermarkus force-pushed the feature/indexmap/get-index branch from aef5a48 to df33331 Compare April 6, 2025 00:24
@reitermarkus reitermarkus enabled auto-merge April 6, 2025 00:24
@reitermarkus
Copy link
Member

Thanks, @pamburus!

@reitermarkus reitermarkus added this pull request to the merge queue Apr 6, 2025
Merged via the queue into rust-embedded:main with commit d2463de Apr 6, 2025
22 checks passed
@pamburus pamburus deleted the feature/indexmap/get-index branch April 6, 2025 01: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.

3 participants