rust: function calls and basic match statements