Function rustfmt_nightly::format_input [−][src]
pub fn format_input<T: Write>(
input: Input,
config: &Config,
out: Option<&mut T>
) -> Result<(Summary, FormatReport), (ErrorKind, Summary)>
The main entry point for Rustfmt. Formats the given input according to the
given config. out
is only necessary if required by the configuration.