Skip to main content

format_file

Function format_file 

Source
pub fn format_file(path: &Path, source: &str, style: &Style) -> String
Expand description

Format source as the file at path, which is what lets the include sorter put the file’s own header first (clang-format’s main-header rule; see includes.rs).