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
I find I end up writing
let x = bumpalo::format!(in cx.bump, "{}", var).into_bump_str();
a lot, so my suggestion is to add
trait ToBumpString: Display { fn to_bump_str<'a>(&self, arena: &'a Bump) -> &'a str { bumpalo::format!(in arena, "{}", var).into_bump_str(); }
matching ToString (except that we want a &str).
ToString
&str
The text was updated successfully, but these errors were encountered:
This makes sense to me, but in the bumpalo crate.
bumpalo
ToString doesn't require Display, but instead has a blanket implementation for all T: Display. I think it makes sense to copy that here.
Display
T: Display
Sorry, something went wrong.
No branches or pull requests
I find I end up writing
a lot, so my suggestion is to add
matching
ToString
(except that we want a&str
).The text was updated successfully, but these errors were encountered: