Registry / utility / quick-error

quick-error

JSON →
library2.0.1rscratesunverified

A macro which makes error types pleasant to write.

# Cargo.toml [dependencies] quick-error = "2.0.1"
INSTALL
IMPORT
SIG · QUICK-ERROR
Q
quick-error
utilityrustv2.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

quick_error
use quick_error::quick_error;

Define custom error types concisely using the quick_error! macro.

use quick_error::quick_error; quick_error! { #[derive(Debug)] pub enum MyError { Io(err: std::io::Error) { from() } NotFound { display("not found") } } } fn main() -> Result<(), MyError> { Err(MyError::NotFound) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.0.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
quick-error — cargo add quick-error · libregistry