Skip to content

Glossary: Software Design Patterns in Rust

Composite

Also written: composite pattern

A pattern where an item and a group of items answer the same method, so a group can hold other groups. A gift Bundle's price is the sum of its parts' prices.

Where the book teaches it

Related terms

Tree