Skip to content

Glossary: Rust Beyond the Basics

Error trait

Also written: std::error::Error, Error

The standard trait that error types implement. A custom error needs `Debug`, `Display` and this trait, whose methods all have defaults.

Where the book teaches it

Related terms

thiserrorDisplayBox<dyn Error>