-
Notifications
You must be signed in to change notification settings - Fork 478
Fallible storage get and set methods for Lazy and Mapping
#1910
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
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
f7a50c5
wip
xermicus d1bbb7e
draft fallibe getter
xermicus 377c1a7
implement it in macros
xermicus 2af2748
typos
xermicus dc4af88
Merge branch 'master' into cl/try-for-lazy
xermicus b93ccec
add tests for lazy
xermicus a461884
dedicated error variant
xermicus 8c9c3aa
implement try API for mapping
xermicus 8f064c9
clippy, fmt, spellcheck
xermicus 2f524f8
fmt
xermicus fdfe5e2
checked_add
xermicus 2656609
fmrt
xermicus 98ba420
Merge branch 'master' into cl/try-for-lazy
xermicus a2c991b
saturating_add prevents panicking
xermicus ecb504c
fix ui test
xermicus c6565cc
use chained expressions to calculate the encoded size
xermicus 44de2cf
the key size adds to the encoded size too for getters
xermicus da9681d
exercise the fallible storage methods in the mapping integration test
xermicus 5d7acfe
Merge branch 'master' into cl/try-for-lazy
xermicus 8f8f7eb
cleanup integration test
xermicus 94c8c7b
add lazy test for key sizes
xermicus 35b045b
consistent naming
xermicus 570f3ab
consider key size in try_insert too
xermicus 1ead741
fmt
xermicus 080fec0
do not depend on a particular static buffer size in the mapping test
xermicus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
use chained expressions to calculate the encoded size
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
- Loading branch information
commit c6565cc4f636af3ab176815dbb023b87785377cd
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.