Crates.io | cex |
lib.rs | cex |
version | 0.5.2 |
source | src |
created_at | 2018-11-20 17:41:24.697635 |
updated_at | 2021-04-04 11:51:25.677188 |
description | Checked exception simulation. |
homepage | |
repository | https://github.com/oooutlk/enumx |
max_upload_size | |
id | 97803 |
size | 35,830 |
Emulating checked exceptions in Rust.
Cargo.toml
:
[dependencies.enumx]
version = "0.4"
[dependencies.cex]
version = "0.5"
Add this if you want to support backtrace:
features = ["log","pretty_log"]
src/lib.rs
:
use enumx::export::*;
use enumx::predefined::*; // or use your own enum types at your will.
use cex::*;
ad-hoc enums as checked exceptions.
Backtrace.
Type as pattern.
Fallback as impl Trait
.
See the enumx book for more.
Under MIT.