map_err 类似 map ,除了它把一个函数用于 Result 的 Err(...) 值。在这个例子中,我们想要把所有的错误转换为一个类型: String 。因为 io::Error ...
確定! 回上一頁