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/84 context methods #85

Merged
merged 8 commits into from
Mar 12, 2024
Merged

Feat/84 context methods #85

merged 8 commits into from
Mar 12, 2024

Conversation

GlenDC
Copy link
Member

@GlenDC GlenDC commented Mar 12, 2024

PR to integrate original PR #84 into main branch.

Closes #70

Alvin Kuruvilla and others added 8 commits March 2, 2024 21:17
This patch implements get_or and get_or_default on Context.
I required an extra Clone bound on T to implement these two functions,
but I think that was the simplest way to do it.
This is to help make some of the pre-checks for get_or and get_or_default
simplerd
…nsert_with

get_or_insert_with crasehs on the last line. I'm sure there's also a better way to write it
Recreate pull request for get_or_nsert and the other associated functions
@GlenDC GlenDC merged commit 2b5d7c3 into main Mar 12, 2024
13 checks passed
@GlenDC GlenDC deleted the feat/84-context-methods branch March 12, 2024 20:14
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.

provide get_or_insert functionality to the Context struct for extensions
2 participants