![Rust Standard Library Cookbook](https://wfqqreader-1252317822.image.myqcloud.com/cover/74/36700074/b_36700074.jpg)
上QQ阅读APP看书,第一时间看更新
There's more...
If you want your object to be constructable without a builder, you could also provide Burger with a Default implementation. BurgerBuilder::new() could then just return Default::default().
In build(), if your configuration can inherently not be invalid, you can, of course, return the object directly without wrapping it in a Result.