1 2 3 4 5 6 7 8
/// 数学相关的工具函数 pub fn add(a: i32, b: i32) -> i32 { a + b } pub fn max(a: i32, b: i32) -> i32 { if a > b { a } else { b } }