- Rust Standard Library Cookbook
- Jan Nils Ferner Daniel Durante
- 52字
- 2021-08-27 19:45:04
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.
推薦閱讀
- 元器件易學(xué)通:常用元件分冊(cè)
- 密碼之謎
- 圖表細(xì)說(shuō)電子工程師速成手冊(cè)(第2版)
- 快修巧修新型手機(jī)(修訂版)
- 聲發(fā)射信號(hào)處理算法研究
- 5G承載網(wǎng)絡(luò)運(yùn)維(中級(jí))
- 會(huì)聲會(huì)影X9 DV影片制作/編輯/刻盤(pán)實(shí)戰(zhàn)從入門(mén)到精通
- 微波射頻電路設(shè)計(jì)與仿真100例
- 現(xiàn)代通信原理與技術(shù)
- 大規(guī)模天線波束賦形技術(shù)原理與設(shè)計(jì)
- 通用數(shù)字集成電路簡(jiǎn)明速查手冊(cè)
- 瓷片的誘惑
- 電子工藝與品質(zhì)管理
- Android移動(dòng)應(yīng)用開(kāi)發(fā)技術(shù)與實(shí)踐
- 數(shù)字通信原理(第3版)