rust match function

rust math expression