Rust 具有显式返回类型的Lambda

示例

// lambda表达式可以具有显式注释的返回类型
let floor_func = |x: f64| -> i64 { x.floor() as i64 };