2 ms·
Rust doesn't have explicit capture lists, but it does have the `move` modifier on closures which is like C++'s `[=]`. Strictly speaking, Rust probably could ha
by kibwen 11y ago
Rust doesn't have explicit capture lists, but it does have the `move` modifier on closures which is like C++'s `[=]`.
Strictly speaking, Rust probably could have gotten away with having neither the `move` modifier nor capture clauses at all, but it would have had wide-ranging implications on the ergonomics and capabilty of closures.