syn
syn copied to clipboard
Extend<Pair<&..>> and Pairs::cloned supports for Punctuated
This is designed to make it easy to extend a Punctuated from an iterator over another Punctuated:
- Auto-insert extra punctuation if extend-target does not have trailing comma. This is a breaking change due to the extra
Defaultbound, so I may need to remove it. - Support extension from reference types.
- Support
clonedover aPairsiterator.
The last two are redundant with each other, from the POV of the motivation.
BTW I'm waiting on comment before looking at CI failures. Quite possibly the Default bound needs to be removed?
I picked up two of these changes in #1255 and #1256. Thanks!
The rest is too far into diminishing returns I think. For example .map(Pair::cloned) supersedes the need for a new ClonedPairs iterator type.
Thanks!