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

Document each for extending collections. #288

Open
nathan-at-least opened this issue May 7, 2023 · 1 comment
Open

Document each for extending collections. #288

nathan-at-least opened this issue May 7, 2023 · 1 comment

Comments

@nathan-at-least
Copy link

Request

Document collection extension with each directive.

Next Steps

I may submit a PR with the documentation as I learn how each works. I've read #287 and then discovered the expansion definition.

Background

I just discovered derive_builder yesterday after an hour of tediously hand-writing multiple builder types. This is a very useful tool!

I converted every builder in my project to use derive_builder except for a builder that needed to extend a BTreeMap. When I came this issue tracker to see if others had asked for this support, I found #287 and realized there's already functionality for this. I went back and read over the crate docs, but couldn't find any detail on that.

@TedDriggs
Copy link
Collaborator

A PR with a documentation update and/or an entry in examples would be welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants