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

Add a few nods to BTreeMap/Set #342

Merged
merged 2 commits into from
Aug 28, 2024
Merged

Conversation

cuviper
Copy link
Member

@cuviper cuviper commented Aug 28, 2024

  • Add first_entry and last_entry similar to BTreeMap's, except ours returns IndexedEntry instead of OccupiedEntry, avoiding the RawTable search.
  • Add doc aliases for BTreeMap/BTreeSet-like methods:
    • first_key_value is first, and last_key_value is last
    • pop_last is just pop (and we don't have pop_first)

@cuviper cuviper added this pull request to the merge queue Aug 28, 2024
Merged via the queue into indexmap-rs:master with commit e482e17 Aug 28, 2024
16 checks passed
@cuviper cuviper deleted the btree-like branch August 28, 2024 20:52
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