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

feature: initialize with const #515

Open
oligamiq opened this issue Oct 9, 2024 · 2 comments
Open

feature: initialize with const #515

oligamiq opened this issue Oct 9, 2024 · 2 comments

Comments

@oligamiq
Copy link

oligamiq commented Oct 9, 2024

When creating a vec, is it possible to use const fn so that the values can be prepared from the beginning?

@burrbull
Copy link
Member

burrbull commented Oct 9, 2024

Only in nightly Rust for now.

@oligamiq
Copy link
Author

oligamiq commented Oct 9, 2024

Do you plan to achieve an equivalent in stable using macros?

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