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 CowStr::from_utf8 #57

Closed
fasterthanlime opened this issue Sep 14, 2024 · 0 comments
Closed

Add CowStr::from_utf8 #57

fasterthanlime opened this issue Sep 14, 2024 · 0 comments

Comments

@fasterthanlime
Copy link
Contributor

fasterthanlime commented Sep 14, 2024

...because when CompactString is enabled, there's a better path than doing String::from_utf8 and then converting to CowStr: https://docs.rs/compact_str/latest/compact_str/struct.CompactString.html#method.from_utf8

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

No branches or pull requests

1 participant