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

WIP: Moving internals from Vec to Cow (Starting point for discussion) #286

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

junderw
Copy link

@junderw junderw commented Sep 27, 2023

Fixes #285

This will allow for const creation of BigUint etc.

I started off by just doing BigUint to give an idea of what it would take. Please use this as a starting off point for discussion.

Right now I'm not looking for optimization, but just the bare minimum.

If you have a static borrow and something in the original code calls a mut method, a copy will be made, regardless of whether the mut method would have actually changed the contents of the Vec or not.

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.

Ability to create const BigUint etc.
1 participant