-
Notifications
You must be signed in to change notification settings - Fork 27
Add FromIterator and Extend implementations #15
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 FromIterator and Extend implementations #15
Conversation
|
Please use While you’re at it, you may want to also implement |
78a3825 to
9adfea0
Compare
|
OK, updated to address feedback, including adding It might be good to implement |
|
|
|
☔ The latest upstream changes (presumably #14) made this pull request unmergeable. Please resolve the merge conflicts. |
9adfea0 to
5771df4
Compare
|
I have rebased, updated and rendered everything consistent. Ready for merging, I believe. |
`FromIterator<T>` and `Extend<T>` are implemented for the following values of `T`: - `char` for `StrTendril`; - `u8` for `ByteTendril`; - `&u8` for `ByteTendril`, for reasons of ergonomics (see also rust-lang/rfcs#839 for justification); - `&str` for `StrTendril`; - `&[u8]` for `ByteTendril`; - `&Tendril<F>` for `Tendril<F>` (the `Extend` implementation already existed; the `FromIterator` is added).
5771df4 to
0788b2b
Compare
|
Looks great. Thanks! |
|
@bors-servo r+ |
|
📌 Commit 0788b2b has been approved by |
…onSapin Add FromIterator and Extend implementations `FromIterator<T>` and `Extend<T>` are implemented for the following values of `T`: - `char` for `StrTendril`; - `u8` for `ByteTendril`; - `&u8` for `ByteTendril`, for reasons of ergonomics (see also rust-lang/rfcs#839 for justification); - `&str` for `StrTendril`; - `&[u8]` for `ByteTendril`; - `&Tendril<F>` for `Tendril<F>` (the `Extend` implementation already existed; the `FromIterator` is added). <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/tendril/15) <!-- Reviewable:end -->
|
☀️ Test successful - travis |
FromIterator<T>andExtend<T>are implemented for the following values ofT:charforStrTendril;u8forByteTendril;&u8forByteTendril, for reasons of ergonomics (see also Have collections impl Extend<&T> where T: copy rust-lang/rfcs#839 for justification);&strforStrTendril;&[u8]forByteTendril;&Tendril<F>forTendril<F>(theExtendimplementation already existed; theFromIteratoris added).