Skip to content

Glossary: Software Design Patterns in Rust

Template method

A pattern that fixes a job's steps in one place and leaves one step (a hook) for callers. It can be a closure argument or a trait default method calling required methods.

Where the book teaches it

Related terms

HookDefault method