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

RepeatedField should implement std::iter::Extend #561

Closed
qwandor opened this issue Jun 17, 2021 · 2 comments
Closed

RepeatedField should implement std::iter::Extend #561

qwandor opened this issue Jun 17, 2021 · 2 comments

Comments

@qwandor
Copy link

qwandor commented Jun 17, 2021

As of 2.24.1, there doesn't seem to be an easy way to append multiple elements to a RepeatedField which already contains some elements. The simplest way to support this would be for it to implement std::iter::Extend, like Vec does.

stepancheg added a commit that referenced this issue Aug 8, 2021
* Implement `Extend<T>` and `Extend<&T>` for `RepeatedField`
* Implement `PartialEq` for LHS and RHS slices for `RepeatedField`

Issue #561
@stepancheg
Copy link
Owner

Pushed to 2.25 branch (1611f9d).

Did not push to master since there's no RepeatedField in the next version of rust-protobuf.

@stepancheg
Copy link
Owner

Published 2.25.0.

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