Skip to content

Glossary: Rust Beyond the Basics

thiserror

Also written: #[error]

A crate whose derive writes `Display`, `Error` and `From` for your own error enum from `#[error("...")]` and `#[from]` attributes. It suits libraries.

Where the book teaches it

Related terms

anyhowFromError trait