Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

shrink_to_fit method on BufMut #33

Open
Be-ing opened this issue Dec 13, 2022 · 1 comment
Open

shrink_to_fit method on BufMut #33

Be-ing opened this issue Dec 13, 2022 · 1 comment

Comments

@Be-ing
Copy link
Contributor

Be-ing commented Dec 13, 2022

It would be nice to shrink a buffer's capacity after resizing it, like std::vec::Vec::shrink_to_fit.

@Be-ing
Copy link
Contributor Author

Be-ing commented Dec 13, 2022

Hmm, some impls of BufMut, such as those on slices, might not own their backing memory. So maybe this should only be implemented on the buffers in audio::buf, but not on the BufMut trait.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant