-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Implement std::iter::FromIterator<char> for Box<str> #65163
Comments
Did you mean |
Yes thank you |
The workaround to use until then is |
@rustbot claim |
I made the change, should I proceed with a PR? Sorry if it's a stupid question, but it's my first issue |
@Duddino I think you can. The equivalent thing for If you are curious, bigger changes - not this one - in Rust might require an RFC -- see the contributing file. |
@Blussi Thank you! |
PR is #65168 |
These are analogous to impl FromIterator<A> for Box<[A]> (rust-lang#55843). Fixes rust-lang#65163. Signed-off-by: Anders Kaseorg <[email protected]>
This would allow to construct a Box from an iterator, example:
let string: Box<str> = (0..5).map(|_| '☺').collect();
This issue has been assigned to @Duddino via this comment.
The text was updated successfully, but these errors were encountered: