Skip to main content

Blog

Rust tutorials, guides and notes from the Rustfinity team.

design-patternsbest-practices10 min read

Builder Pattern in Rust: Constructing Complex Values Without a Dozen `new` Variants

How the builder pattern works in Rust - hand-written owned and borrowed builders, typestate builders that catch missing fields at compile time, and the derive_builder and bon crates.

Read the post