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

Add shrink_to / shrink_to_fit to MutableBuffer #297

Closed
ritchie46 opened this issue May 16, 2021 · 0 comments · Fixed by #318
Closed

Add shrink_to / shrink_to_fit to MutableBuffer #297

ritchie46 opened this issue May 16, 2021 · 0 comments · Fixed by #318
Labels
enhancement Any new improvement worthy of a entry in the changelog

Comments

@ritchie46
Copy link
Contributor

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

When memory is tight, it could be useful to be able to shrink a MutableBuffer before freezing it.

Describe the solution you'd like
The behavior of this methods would ideally mimic those of Vec<T>

@ritchie46 ritchie46 added the enhancement Any new improvement worthy of a entry in the changelog label May 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Any new improvement worthy of a entry in the changelog
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant