-
Notifications
You must be signed in to change notification settings - Fork 112
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
Allocate OsStrs and Paths in a Bump? #81
Comments
In addition to the Windows issues you mentioned, this crate is always It is probably best to implement this functionality in a small helper function outside of this crate. It should be relatively easy to write such a helper on top of |
Thanks. Feel free to close this issue then. Would it be worth documenting this somewhere? |
this = "always If you end up writing a crate that adds this helper, I'm happy to link to it from the README as well! |
ahh, good question! both of those things I guess? that bumpalo is always no_std and that this + the Windows issues are why |
It would be very convenient to support allocating
OsStr
andPath
instances in aBump
.Unfortunately the underlying byte representation isn't exposed on Windows, so we'll probably have to return
Cow<'bump, OsStr>
orCow<'bump, Path>
which may defeat the purpose :(The text was updated successfully, but these errors were encountered: