Add reference to derive_builder

This commit is contained in:
Ben Berman 2018-12-19 17:35:31 -05:00 committed by GitHub
parent efa8de654a
commit 436df362f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,6 +98,8 @@ as well as the `FooBuilder::new().a().b().finish()` style.
[Description in the style guide](https://doc.rust-lang.org/1.0.0/style/ownership/builders.html)
[derive_builder](https://crates.io/crates/derive_builder), a crate for automatically implementing this pattern while avoiding the boilerplate.
[Constructor pattern](../idioms/ctor.md) for when construction is simpler.
[Builder pattern (wikipedia)](https://en.wikipedia.org/wiki/Builder_pattern)