Crate rustfmt[−][src]

Modules

Inspection and manipulation of the process’s environment.

Traits, helpers, and type definitions for core I/O functionality.

Macros

Inspects an environment variable at compile time.

Construct an ad-hoc error from a string or existing non-anyhow error value.

Structs

A reference to an open file on the filesystem.

A set of lines in files.

Parsed command line options.

A hash map implemented with quadratic probing and SIMD lookup.

The error type for I/O operations of the Read, Write, Seek, and associated traits.

The result of checking command line arguments. Contains a vector of matches and a vector of free strings.

A description of the options that a program can handle.

A slice of a path (akin to str).

An owned, mutable path (akin to String).

A session is a run of rustfmt across a single or multiple inputs.

Enums

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

Arguments to --help

Rustfmt operations.

Rustfmt operations errors.

Constants

Traits

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

Parse a value from a string

The Read trait allows for reading bytes from a source.

A trait for objects which are byte-oriented sinks.

Functions

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

Constructs a new handle to the standard output of the current process.

Type Definitions

Result<T, Error>

Derive Macros