How to Pass a Function as a Parameter in Rust | CodeTrail