Skip to content

Comments

Add an iter_mut method to Fields#466

Merged
dtolnay merged 1 commit intodtolnay:masterfrom
mjbshaw:fields-iter_mut
Aug 3, 2018
Merged

Add an iter_mut method to Fields#466
dtolnay merged 1 commit intodtolnay:masterfrom
mjbshaw:fields-iter_mut

Conversation

@mjbshaw
Copy link
Contributor

@mjbshaw mjbshaw commented Aug 3, 2018

Iterating over the fields is very useful, but I currently have a need to mutate the fields. I could implement this behavior locally in my project, but I think others might find this useful.

Copy link
Owner

@dtolnay dtolnay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this seems reasonable. Please also add an IntoIterator impl for &mut Fields.

@mjbshaw
Copy link
Contributor Author

mjbshaw commented Aug 3, 2018

Thanks, done. Sorry I missed that one.

@dtolnay dtolnay merged commit dc7de68 into dtolnay:master Aug 3, 2018
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

Successfully merging this pull request may close these issues.

2 participants