Struct rustfmt_nightly::config::PartialConfig
source · pub struct PartialConfig {Show 81 fields
pub max_width: Option<usize>,
pub hard_tabs: Option<bool>,
pub tab_spaces: Option<usize>,
pub newline_style: Option<NewlineStyle>,
pub indent_style: Option<IndentStyle>,
pub use_small_heuristics: Option<Heuristics>,
pub width_heuristics: Option<WidthHeuristics>,
pub fn_call_width: Option<usize>,
pub attr_fn_like_width: Option<usize>,
pub struct_lit_width: Option<usize>,
pub struct_variant_width: Option<usize>,
pub array_width: Option<usize>,
pub chain_width: Option<usize>,
pub single_line_if_else_max_width: Option<usize>,
pub wrap_comments: Option<bool>,
pub format_code_in_doc_comments: Option<bool>,
pub doc_comment_code_block_width: Option<usize>,
pub comment_width: Option<usize>,
pub normalize_comments: Option<bool>,
pub normalize_doc_attributes: Option<bool>,
pub format_strings: Option<bool>,
pub format_macro_matchers: Option<bool>,
pub format_macro_bodies: Option<bool>,
pub hex_literal_case: Option<HexLiteralCase>,
pub empty_item_single_line: Option<bool>,
pub struct_lit_single_line: Option<bool>,
pub fn_single_line: Option<bool>,
pub where_single_line: Option<bool>,
pub imports_indent: Option<IndentStyle>,
pub imports_layout: Option<ListTactic>,
pub imports_granularity: Option<ImportGranularity>,
pub group_imports: Option<GroupImportsTactic>,
pub merge_imports: Option<bool>,
pub reorder_imports: Option<bool>,
pub reorder_modules: Option<bool>,
pub reorder_impl_items: Option<bool>,
pub type_punctuation_density: Option<TypeDensity>,
pub space_before_colon: Option<bool>,
pub space_after_colon: Option<bool>,
pub spaces_around_ranges: Option<bool>,
pub binop_separator: Option<SeparatorPlace>,
pub remove_nested_parens: Option<bool>,
pub combine_control_expr: Option<bool>,
pub short_array_element_width_threshold: Option<usize>,
pub overflow_delimited_expr: Option<bool>,
pub struct_field_align_threshold: Option<usize>,
pub enum_discrim_align_threshold: Option<usize>,
pub match_arm_blocks: Option<bool>,
pub match_arm_leading_pipes: Option<MatchArmLeadingPipe>,
pub force_multiline_blocks: Option<bool>,
pub fn_args_layout: Option<Density>,
pub brace_style: Option<BraceStyle>,
pub control_brace_style: Option<ControlBraceStyle>,
pub trailing_semicolon: Option<bool>,
pub trailing_comma: Option<SeparatorTactic>,
pub match_block_trailing_comma: Option<bool>,
pub blank_lines_upper_bound: Option<usize>,
pub blank_lines_lower_bound: Option<usize>,
pub edition: Option<Edition>,
pub version: Option<Version>,
pub inline_attribute_width: Option<usize>,
pub format_generated_files: Option<bool>,
pub merge_derives: Option<bool>,
pub use_try_shorthand: Option<bool>,
pub use_field_init_shorthand: Option<bool>,
pub force_explicit_abi: Option<bool>,
pub condense_wildcard_suffixes: Option<bool>,
pub color: Option<Color>,
pub required_version: Option<String>,
pub unstable_features: Option<bool>,
pub disable_all_formatting: Option<bool>,
pub skip_children: Option<bool>,
pub hide_parse_errors: Option<bool>,
pub error_on_line_overflow: Option<bool>,
pub error_on_unformatted: Option<bool>,
pub ignore: Option<IgnoreList>,
pub verbose: Option<Verbosity>,
pub file_lines: Option<FileLines>,
pub emit_mode: Option<EmitMode>,
pub make_backup: Option<bool>,
pub print_misformatted_file_names: Option<bool>,
}
Fields§
§max_width: Option<usize>
§hard_tabs: Option<bool>
§tab_spaces: Option<usize>
§newline_style: Option<NewlineStyle>
§indent_style: Option<IndentStyle>
§use_small_heuristics: Option<Heuristics>
§width_heuristics: Option<WidthHeuristics>
§fn_call_width: Option<usize>
§attr_fn_like_width: Option<usize>
§struct_lit_width: Option<usize>
§struct_variant_width: Option<usize>
§array_width: Option<usize>
§chain_width: Option<usize>
§single_line_if_else_max_width: Option<usize>
§wrap_comments: Option<bool>
§format_code_in_doc_comments: Option<bool>
§doc_comment_code_block_width: Option<usize>
§comment_width: Option<usize>
§normalize_comments: Option<bool>
§normalize_doc_attributes: Option<bool>
§format_strings: Option<bool>
§format_macro_matchers: Option<bool>
§format_macro_bodies: Option<bool>
§hex_literal_case: Option<HexLiteralCase>
§empty_item_single_line: Option<bool>
§struct_lit_single_line: Option<bool>
§fn_single_line: Option<bool>
§where_single_line: Option<bool>
§imports_indent: Option<IndentStyle>
§imports_layout: Option<ListTactic>
§imports_granularity: Option<ImportGranularity>
§group_imports: Option<GroupImportsTactic>
§merge_imports: Option<bool>
§reorder_imports: Option<bool>
§reorder_modules: Option<bool>
§reorder_impl_items: Option<bool>
§type_punctuation_density: Option<TypeDensity>
§space_before_colon: Option<bool>
§space_after_colon: Option<bool>
§spaces_around_ranges: Option<bool>
§binop_separator: Option<SeparatorPlace>
§remove_nested_parens: Option<bool>
§combine_control_expr: Option<bool>
§short_array_element_width_threshold: Option<usize>
§overflow_delimited_expr: Option<bool>
§struct_field_align_threshold: Option<usize>
§enum_discrim_align_threshold: Option<usize>
§match_arm_blocks: Option<bool>
§match_arm_leading_pipes: Option<MatchArmLeadingPipe>
§force_multiline_blocks: Option<bool>
§fn_args_layout: Option<Density>
§brace_style: Option<BraceStyle>
§control_brace_style: Option<ControlBraceStyle>
§trailing_semicolon: Option<bool>
§trailing_comma: Option<SeparatorTactic>
§match_block_trailing_comma: Option<bool>
§blank_lines_upper_bound: Option<usize>
§blank_lines_lower_bound: Option<usize>
§edition: Option<Edition>
§version: Option<Version>
§inline_attribute_width: Option<usize>
§format_generated_files: Option<bool>
§merge_derives: Option<bool>
§use_try_shorthand: Option<bool>
§use_field_init_shorthand: Option<bool>
§force_explicit_abi: Option<bool>
§condense_wildcard_suffixes: Option<bool>
§color: Option<Color>
§required_version: Option<String>
§unstable_features: Option<bool>
§disable_all_formatting: Option<bool>
§skip_children: Option<bool>
§hide_parse_errors: Option<bool>
§error_on_line_overflow: Option<bool>
§error_on_unformatted: Option<bool>
§ignore: Option<IgnoreList>
§verbose: Option<Verbosity>
§file_lines: Option<FileLines>
§emit_mode: Option<EmitMode>
§make_backup: Option<bool>
§print_misformatted_file_names: Option<bool>
Implementations§
source§impl PartialConfig
impl PartialConfig
pub fn to_toml(&self) -> Result<String, ToTomlError>
Trait Implementations§
source§impl Clone for PartialConfig
impl Clone for PartialConfig
source§fn clone(&self) -> PartialConfig
fn clone(&self) -> PartialConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'de> Deserialize<'de> for PartialConfig
impl<'de> Deserialize<'de> for PartialConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for PartialConfig
impl Send for PartialConfig
impl Sync for PartialConfig
impl Unpin for PartialConfig
impl UnwindSafe for PartialConfig
Blanket Implementations§
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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: 568 bytes