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

Custom allocator support #34

Open
thomcc opened this issue Jan 2, 2022 · 1 comment
Open

Custom allocator support #34

thomcc opened this issue Jan 2, 2022 · 1 comment
Labels

Comments

@thomcc
Copy link
Owner

thomcc commented Jan 2, 2022

We could define a custom trait (see how hashbrown does this) to support it prior to the unstable trait landing. This would (at the very least) allow testing allocation fallibility1, if nothing else.

That said, this is a non-trivial amount of work that seems a bit pointless at the moment.

Footnotes

  1. Admittedly, the amount of code that it would allow testing is very small, and the code in question is very straightforward — just a few lines which do nothing but return errors to their caller.

@thomcc
Copy link
Owner Author

thomcc commented May 7, 2024

I think it is not worth it to define a custom trait, but there's no reason we couldn't support core::alloc::Allocator once it is stable.

@thomcc thomcc added the blocked label May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant