Motivation
Emulating checked exceptions in Rust.
Usage
- Add this crate to Cargo.toml, and enable any features you want
Cargo.toml
:
[]
= "0.4"
[]
= "0.5"
Add this if you want to support backtrace:
= ["log","pretty_log"]
src/lib.rs
:
use *;
use *; // or use your own enum types at your will.
use *;
Features
-
ad-hoc enums as checked exceptions.
-
Backtrace.
-
Type as pattern.
-
Fallback as
impl Trait
.
Documentation
See the enumx book for more.
License
Under MIT.