Skip to content

Glossary: Software Design Patterns in Rust

Prototype

Also written: prototype pattern

A pattern that copies a ready-made value and changes a little, like Bloom Café's weekly order template. In Rust it is `Clone` plus `..base.clone()`.

Where the book teaches it

Related terms

CloneStruct update syntax