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

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

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

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.

None yet

2 participants