Tips for golfing in Rust
Use closures instead of functions

A closure: 

|n|n+1


is shorter than a function:

fn f(n:i32)-&gt;i32{n+1}




Closures longer than one statement need braces but are still far shorter than a function.