expect_soft

Crates.ioexpect_soft
lib.rsexpect_soft
version0.1.1
sourcesrc
created_at2023-09-29 16:14:52.682771
updated_at2023-09-29 16:17:24.120395
description.expect but exit instead of panic
homepage
repositoryhttps://github.com/modtk/expect_soft
max_upload_size
id987560
size2,448
rosidae0 (rosidae)

documentation

README

.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!");
}
Commit count: 4

cargo fmt