*[de-vri-es/assert2-rs: assert\!() and check\!() macros for Rust, inspired by Catch2](https://github.com/de-vri-es/assert2-rs)の`check!`を使えば良さそうと思ったがこれはスコープが終了するまでpanicを遅延するものである
*[joelparkerhenderson/assure-rust-crate: Assure rust crate: macros for Rust runtime checks and error handling](https://github.com/joelparkerhenderson/assure-rust-crate/): こちらはあまり利用されていない
## 1つの関数に複数の種類のエラーが入り交じる場合の返り値のResultの型はどうする?
## 1つの関数に複数の種類のエラーが入り交じる場合の返り値のResultの型はどうする?
1.`Result<(),Box<dyn std::error::Error>>`
1.`Result<(),Box<dyn std::error::Error>>`
...
@@ -303,7 +300,20 @@ std::fs::File::open(path).with_context(|| format!("Failed to open config file: {
...
@@ -303,7 +300,20 @@ std::fs::File::open(path).with_context(|| format!("Failed to open config file: {
*[de-vri-es/assert2-rs: assert\!() and check\!() macros for Rust, inspired by Catch2](https://github.com/de-vri-es/assert2-rs)の`check!`を使えば良さそうと思ったがこれはスコープが終了するまでpanicを遅延するものである
*[joelparkerhenderson/assure-rust-crate: Assure rust crate: macros for Rust runtime checks and error handling](https://github.com/joelparkerhenderson/assure-rust-crate/): こちらはあまり利用されていない