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

Maybe add method for creating boxed slice #4

Open
upsuper opened this issue Sep 1, 2019 · 2 comments
Open

Maybe add method for creating boxed slice #4

upsuper opened this issue Sep 1, 2019 · 2 comments

Comments

@upsuper
Copy link
Owner

upsuper commented Sep 1, 2019

It might be useful to add method fn default_boxed_slice(n: usize) -> Box<[Self]> if there are such demand.

@bluebear94
Copy link

I'd also like a method to create an array, perhaps fn default_boxed_array<const N: usize>() -> Box<[Self; N]>.

@upsuper
Copy link
Owner Author

upsuper commented Aug 5, 2021

@bluebear94 Thanks for the request. It has been added in 0.1.10.

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