Skip to content

Glossary: Software Design Patterns in Rust

panic!

Also written: panic, panicked

A macro that stops the program with an error message. The old place_order panics on an unknown carrier.

Where the book teaches it

Related terms

Liskov substitution principle (LSP)