我意识到Result当我需要从函数返回某些内容时我总是使用它。
Result
这在良好的 Rust 开发中是常见的吗?我是否还应该Result为void可能遇到错误的函数返回 a (如Result<(), Error>)?
void
Result<(), Error>
rust
rust ×1