rmw-lib / rmw_err

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rmw_err

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"));
  }
}

About


Languages

Language:Rust 77.1%Language:Shell 22.9%