Skip to main content

format_module_info

Function format_module_info 

Source
pub fn format_module_info(info: &ModuleInfo) -> String
Expand description

Format a ModuleInfo into a compact single-block string.

Output format:

FILE: <name> (<line_count>L, <fn_count>F, <import_count>I)
F:
  func1:10, func2:42
I:
  module1:item1, item2; module2:item1; module3

The F: section is omitted when there are no functions; likewise I: when there are no imports.