def normalize_rust_function(self, function, line):
<EOL>function = drop_prefix_and_return_type(function)<EOL>function = collapse(<EOL>function,<EOL>open_string='<STR_LIT:<>',<EOL>close_string='<STR_LIT:>>',<EOL>replacement='<STR_LIT>',<EOL>exceptions=('<STR_LIT>',)<EOL>)<EOL>if self.collapse_arguments:<EOL><INDENT>function = collapse(<EOL>function,<EOL>open_string='<STR_LIT:(>',<EOL>close_string='<STR_LIT:)>',<EOL>replacement='<STR_LIT>'<EOL>)<EOL><DEDENT>if self.signatures_with_line_numbers_re.match(function):<EOL><INDENT>function = '<STR_LIT>'.format(function, line)<EOL><DEDENT>function = self.fixup_space.sub('<STR_LIT>', function)<EOL>function = self.fixup_comma.sub('<STR_LIT:U+002CU+0020>', function)<EOL>function = self.fixup_hash.sub('<STR_LIT>', function)<EOL>return function<EOL>
Normalizes a single rust frame with a function