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 files and their child modules.
Help(HelpOp)Print the help message.
Print version information
Output default config to a file, or stdout if None
Output current config (as if formatting to a file) to stdout
No file specified, read from stdin
Show fields
Fields of Stdin
input: StringAuto Trait Implementations
impl RefUnwindSafe for Operationimpl UnwindSafe for OperationBlanket Implementations
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. 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