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() }`.
Glossary: Software Design Patterns in Rust
Also written: ..base
The `..base` form that fills fields you didn't name from another struct, as in `OrderTemplate { qty: 20, ..weekly.clone() }`.