Iterator ::try_fold provides the framework for what you need, and it's available since Rust 1.27 (Playground): fn fold_ok<I, T, E, F>(mut iter: I, ...
確定! 回上一頁