Registry / utility / err-convert-macro

err-convert-macro

JSON →
library0.1.1rscratesunverified

Macros for converting between error types.

# Cargo.toml [dependencies] err-convert-macro = "0.1.1"
INSTALL
IMPORT
SIG · ERR-CONVERT-MACRO
E
err-convert-macro
utilityrustv0.1.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.

err_convert
✓ use err_convert_macro::err_convert;

Uses the err_convert macro to wrap a Result.

use err_convert_macro::err_convert; fn main() { let result: Result<i32, String> = err_convert!(Ok(42)); println!("{:?}", result); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
err-convert-macro — cargo add err-convert-macro · libregistry