Enum rustfmt::Operation[][src]

pub(crate) enum Operation {
    Format {
        files: Vec<PathBuf>,
        minimal_config_path: Option<String>,
    },
    Help(HelpOp),
    Version,
    ConfigOutputDefault {
        path: Option<String>,
    },
    ConfigOutputCurrent {
        path: Option<String>,
    },
    Stdin {
        input: String,
    },
}
Expand description

Rustfmt operations.

Variants

Format

Format files and their child modules.

Fields of Format

files: Vec<PathBuf>minimal_config_path: Option<String>
Help(HelpOp)

Print the help message.

Tuple Fields of Help

0: HelpOp
Version

Print version information

ConfigOutputDefault

Output default config to a file, or stdout if None

Fields of ConfigOutputDefault

path: Option<String>
ConfigOutputCurrent

Output current config (as if formatting to a file) to stdout

Fields of ConfigOutputCurrent

path: Option<String>
Stdin

No file specified, read from stdin

Fields of Stdin

input: String

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Layout

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.

Size: 56 bytes

Size for each variant: