在Rust 中, loop 有一個特別之處,就是裡面所用的 break 是可以回傳值的. fn main() { let result = loop { let x = doSomething(); ...
確定! 回上一頁