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

sealable-trie: add bits::Owned::push and pop_back methods #121

Merged
merged 3 commits into from
Nov 28, 2023
Merged

Conversation

mina86
Copy link
Collaborator

@mina86 mina86 commented Nov 24, 2023

Also, for the time being, change bits::Owned::unshift to panic if
length of the slice ends up too long. This is consistant with how Vec
handles things and in all places where unshift was used the caller
unwrapped the value so this isn’t such a terrible design for now.

@mina86 mina86 changed the title sealable-trie: add bits::Owned::push method sealable-trie: add bits::Owned::push and pop_back methods Nov 24, 2023
Also, for the time being, change bits::Owned::unshift to panic if length
of the slice ends up too long.  This is consistant with how Vec handles
things and in all places where unshift was used the caller unwrapped the
value so this isn’t such a terrible design for now.
@mina86 mina86 requested review from blasrodri and dhruvja November 28, 2023 15:07
common/sealable-trie/src/bits.rs Show resolved Hide resolved
@mina86 mina86 merged commit 6b303a1 into master Nov 28, 2023
5 checks passed
@mina86 mina86 deleted the mpn/c branch November 28, 2023 23: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.

2 participants