We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
SmolStrBuilder
SmolStrBuffer
To build a SmolStr from parts it would be useful to have a writeable builder.
SmolStr
Perhaps something like
let mut result = SmolStrBuffer::new(); for part in parts { result.push_str(part); } let result = SmolStr::from(result);
This almost already exists provided by smol_str::Writer, but using this has a couple of downsides
smol_str::Writer
Writer
push_str
It seems straightforward to adapt Writer to this end.
The text was updated successfully, but these errors were encountered:
Writer was added as an implementation detail for the format_smolstr! macro, but we certainly could expose this with a nice API.
format_smolstr!
Sorry, something went wrong.
SmolStrBuilder::push
Successfully merging a pull request may close this issue.
To build a
SmolStr
from parts it would be useful to have a writeable builder.Perhaps something like
This almost already exists provided by
smol_str::Writer
, but using this has a couple of downsidesWriter
is hidden from docs, implying it isn't covered by stability guarantees.Writer
doesn't provide infalliblepush_str
, though it trivially could.It seems straightforward to adapt
Writer
to this end.The text was updated successfully, but these errors were encountered: