Crate rustfmt_nightly[][src]

Macros

impl_enum_serialize_and_deserialize

Macro for deriving implementations of Serialize/Deserialize for enums

Structs

Config
FileLines

A set of lines in files.

FormatReport

Reports on any issues that occurred during a run of Rustfmt.

Range

A range that is inclusive of both ends.

Summary

A summary of a Rustfmt run.

Enums

Color
EmitMode
ErrorKind

The various errors that can occur during formatting. Note that not all of these can currently be propagated to clients.

FileName

Defines the name of an input - either a file or stdin.

Input
NewlineStyle
Verbosity

Traits

CliOptions

Maps client-supplied options to Rustfmt's internals, mostly overriding values in a config with values from the command line.

Functions

checkstyle_footer

The checkstyle footer - should be emitted after the output of Rustfmt.

checkstyle_header

The checkstyle header - should be emitted before the output of Rustfmt.

format_input

The main entry point for Rustfmt. Formats the given input according to the given config. out is only necessary if required by the configuration.

load_config

Load a config by checking the client-supplied options and if appropriate, the file system (including searching the file system for overrides).

replace_with_system_newlines