本地函数

C# 和 Rust 都有本地函数,不过 Rust 中的本地函数仅仅相当于 C# 中的静态本地函数。 也就是说,Rust 中的本地函数无法使用使用外部作用域的变量,但是 闭包 可以。