pub fn format_text(
    file_text: &str,
    config: &Configuration,
    format_code_block_text: impl for<'a> FnMut(&str, &'a str, u32) -> FormatResult
) -> FormatResult
Expand description

Formats a file.

Returns the file text or an error when it failed to parse.