A closure is a function value written inline, |x| x * rate, that may use variables of the scope where it is written. Those variables form its captured environment: the closure stores a reference to each, a mutable reference, or the value itself (move). By what its body does with them, a Rust closure implements Fn (it only reads them, and may be called any number of times), FnMut (it modifies them: called through a mutable borrow), or only FnOnce (it gives a captured value away: callable once).
main’s frame and may not outlive it; the third holds its own copies.