rustfmt_nightly::formatting

Trait FormatHandler

Source
trait FormatHandler {
    // Required method
    fn handle_formatted_file(
        &mut self,
        psess: &ParseSess,
        path: FileName,
        result: String,
        report: &mut FormatReport,
    ) -> Result<(), ErrorKind>;
}

Required Methods§

Source

fn handle_formatted_file( &mut self, psess: &ParseSess, path: FileName, result: String, report: &mut FormatReport, ) -> Result<(), ErrorKind>

Implementors§

Source§

impl<'b, T: Write + 'b> FormatHandler for Session<'b, T>