Crates.io | rmw_err |
lib.rs | rmw_err |
version | 0.0.5 |
source | src |
created_at | 2022-07-12 04:47:30.707001 |
updated_at | 2022-07-12 04:48:40.355906 |
description | utils for log err |
homepage | |
repository | https://github.com/rmw-lib/rmw_err |
max_upload_size | |
id | 624128 |
size | 3,130 |
utils for log err
cargo add rmw_err --rename err
then
use std::fs::File;
fn main() {
if let Ok(_) = err::ok!(File::open("/not_exist")) {
err::log!(Err::<(), _>("test"));
}
}