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.
Help(HelpOp)
Print the help message.
Version
Print version information
ConfigOutputDefault
Output default config to a file, or stdout if None
ConfigOutputCurrent
Output current config (as if formatting to a file) to stdout
Stdin
No file specified, read from stdin
Auto Trait Implementations§
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnwindSafe for Operation
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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:
Format
: 55 bytesHelp
: 1 byteVersion
: 0 bytesConfigOutputDefault
: 31 bytesConfigOutputCurrent
: 31 bytesStdin
: 31 bytes