Skip to main content

Formatter

Type Alias Formatter 

Source
pub type Formatter = fn(&str) -> Result<String, FmtError>;
Expand description

A pass that turns generated source into the text the generator writes: rustfmt for the committed tree, or one built on prettyprint where no rustfmt binary is available.