Skip to content

Glossary: Software Design Patterns in Rust

Decorator

Also written: decorators

A wrapper with the same interface as the value it wraps that does a little extra work and passes the call on. Priya's LoggedCarrier logs each quote.

Where the book teaches it

Related terms

AdapterProxyWrapper