Struct cargo_fmt::Opts [−][src]
pub struct Opts {
quiet: bool,
verbose: bool,
version: bool,
packages: Vec<String>,
manifest_path: Option<String>,
message_format: Option<String>,
rustfmt_options: Vec<String>,
format_all: bool,
}
Fields
quiet: bool
No output printed to stdout
verbose: bool
Use verbose output
version: bool
Print rustfmt version and exit
packages: Vec<String>
Specify package to format (only usable in workspaces)
manifest_path: Option<String>
Specify path to Cargo.toml
message_format: Option<String>
Specify message-format: short|json|human
rustfmt_options: Vec<String>
Options passed to rustfmt
format_all: bool
Format all packages (only usable in workspaces)
Trait Implementations
Creates the struct from clap::ArgMatches
. It cannot fail
with a parameter generated by clap
by construction. Read more
fn from_args() -> Self
fn from_args() -> Self
Gets the struct from the command line arguments. Print the error message and quit the program in case of failure. Read more
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
Gets the struct from any iterator such as a Vec
of your making.
Print the error message and quit the program in case of failure. Read more
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
Gets the struct from any iterator such as a Vec
of your making. Read more
Auto Trait Implementations
impl RefUnwindSafe for Opts
impl UnwindSafe for Opts
Blanket Implementations
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: 104 bytes