Skip to content

add various missing utility functions#51

Open
AlexanderSchuetz97 wants to merge 3 commits into
djc:mainfrom
AlexanderSchuetz97:main
Open

add various missing utility functions#51
AlexanderSchuetz97 wants to merge 3 commits into
djc:mainfrom
AlexanderSchuetz97:main

Conversation

@AlexanderSchuetz97

@AlexanderSchuetz97 AlexanderSchuetz97 commented Jun 21, 2026

Copy link
Copy Markdown
  • insert_entry to RawVacantEntryMut and VacantEntry
  • front_entry/back_entry to map -> Option RawOccupiedEntryMut
  • current_entry to CursorMut -> Result RawOccupiedEntryMut Self

solves #50

I also added all the other gadgets that I also found absent that I require for my use case.
I currently have code that uses BTreeMap that I want to change to LinkedHashMap because I need to re-order
the map based on external criteria. I like your Cursor struct btw. its good.

Let me know what you think

- insert_entry to RawVacantEntryMut and VacantEntry
- front_entry/back_entry to map -> Option<RawOccupiedEntryMut>
- current_entry to CursorMut -> Option<RawOccupiedEntryMut>
@AlexanderSchuetz97

Copy link
Copy Markdown
Author

@djc can you review this?

@djc

djc commented Jun 22, 2026

Copy link
Copy Markdown
Owner

@djc can you review this?

No need to remind me within 24 hours.

@AlexanderSchuetz97

Copy link
Copy Markdown
Author

sorry, wasn't sure github notfied you that this PR exists. I don't get emails for pull requests on my repos unless someone assign me. But I was not able to assign you so I tagged you. If you got notified of this PR by itself then you must have done some settings in gh that I couldn't find.

Sorry for bothering you. Take your time.

@djc

djc commented Jun 22, 2026

Copy link
Copy Markdown
Owner

There's a Watch button on the repo front page that people can use to be notified of all repo activity.

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