Struct rustfmt::GetOptsOptions

source ·
pub(crate) struct GetOptsOptions {
Show 14 fields pub(crate) skip_children: Option<bool>, pub(crate) quiet: bool, pub(crate) verbose: bool, pub(crate) config_path: Option<PathBuf>, pub(crate) inline_config: HashMap<String, String>, pub(crate) emit_mode: Option<EmitMode>, pub(crate) backup: bool, pub(crate) check: bool, pub(crate) edition: Option<Edition>, pub(crate) color: Option<Color>, pub(crate) file_lines: FileLines, pub(crate) unstable_features: bool, pub(crate) error_on_unformatted: Option<bool>, pub(crate) print_misformatted_file_names: bool,
}
Expand description

Parsed command line options.

Fields

skip_children: Option<bool>quiet: boolverbose: boolconfig_path: Option<PathBuf>inline_config: HashMap<String, String>emit_mode: Option<EmitMode>backup: boolcheck: booledition: Option<Edition>color: Option<Color>file_lines: FileLinesunstable_features: boolerror_on_unformatted: Option<bool>print_misformatted_file_names: bool

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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: 136 bytes