We can force our closure to take ownership of its environment with the move keyword: fn main() { let num = 5; let owns_num = move |x: i32| x ...
確定! 回上一頁