Rust and Pure Functional Programming: Square Peg, Round Hole