#expect #exit #panic #soft

expect_soft

.expect but exit instead of panic

2 releases

0.1.1 Sep 29, 2023
0.1.0 Sep 29, 2023

#7 in #soft

CC0 license

3KB

.expect but exit instead of panic

Example usage

use expect_soft::ExpectSoft;
use std::fs;

fn main() {
  fs::read_to_string("./readme.md").expect_soft("readme.md does not exist!");
}

No runtime deps