Skip to content

Glossary: Software Design Patterns in Rust

Struct update syntax

Also written: ..base

The `..base` form that fills fields you didn't name from another struct, as in `OrderTemplate { qty: 20, ..weekly.clone() }`.

Where the book teaches it

Related terms

PrototypeClone