Skip to content

Glossary: Software Design Patterns in Rust

Default method

Also written: default methods

A trait method with a body that implementing types get for free and may override. The template method pattern uses one to run the fixed steps.

Where the book teaches it

Related terms

TraitTemplate methodFragile base class