-
Rust-eh: 进一步探索 Rust 语言的错误处理实践
资源介绍
生锈
这是一个错误处理实验。 主要是尝试将 Python 回溯的可调试性引入 Rust 结果。
当前状态:
Traceback (most recent cause last):
File "/Users/mitsuhiko/Development/rust-eh/examples/test.rs", line 42
fail!(FileNotFound { file: Some(Path::new("/missing.txt")) });
File "/Users/mitsuhiko/Development/rust-eh/examples/test.rs", line 46
try!(test());
File not found: Failed to locate file (file=/missing.txt)
The above error resu