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 vec_in! macro #128

Open
Rua opened this issue Jun 7, 2024 · 1 comment
Open

Add vec_in! macro #128

Rua opened this issue Jun 7, 2024 · 1 comment

Comments

@Rua
Copy link

Rua commented Jun 7, 2024

Currently there is no way to construct a Vec with a non-default allocator, using an array literal. vec! only works with the default allocator.

@Amanieu
Copy link
Member

Amanieu commented Jun 14, 2024

It's not clear whether vectors with custom allocators will be sufficiently widely used to justify adding another macro to the prelude. This should probably be re-visited once custom allocator support has been stabilized.

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

2 participants