Skip to content

const-ify BytesMut::len, BytesMut::is_empty, and BytesMut::capacity, #516

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

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

Conversation

Cyborus04
Copy link
Contributor

No description provided.

@taiki-e
Copy link
Member

taiki-e commented Nov 11, 2021

Is there a way to create BytesMut in const? If not, this does not seem to be available in practice.

@taiki-e
Copy link
Member

taiki-e commented Nov 11, 2021

Ah, it was previously proposed, but I closed it for compatibility with future implementation changes. #472 (review)

@Cyborus04
Copy link
Contributor Author

I guess there isn't, you're right. I think new could be made const, but I'm not sure how useful that would be.

@Cyborus04
Copy link
Contributor Author

Ah, yep, haha

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

Successfully merging this pull request may close these issues.

2 participants