3 Rustfmt is designed to be very configurable. You can create a TOML file called `rustfmt.toml` or `.rustfmt.toml`, place it in the project or any other parent directory and it will apply the options in that file.
5 A possible content of `rustfmt.toml` or `.rustfmt.toml` might look like this:
10 reorder_imported_names = true
13 # Configuration Options
15 Below you find a detailed visual guide on all the supported configuration options of rustfmt:
21 - **Default value**: `"Visual"`
22 - **Possible values**: `"Block"`, `"Visual"`
41 let lorem = vec!["ipsum",
52 Maximum width of an array literal before falling back to vertical formatting
54 - **Default value**: `60`
55 - **Possible values**: any positive integer
57 **Note:** A value of `0` results in [`array_layout`](#array_layout) being applied regardless of a line's width.
59 #### Lines shorter than `array_width`:
62 vec!["ipsum", "dolor", "sit", "amet", "consectetur", "adipiscing", "elit"];
65 #### Lines longer than `array_width`:
66 See [`array_layout`](#array_layout).
72 - **Default value**: `"Block"`
73 - **Possible values**: `"Block"`, `"Visual"`
90 let lorem = ipsum.dolor()
98 See also [`chain_one_line_max`](#chain_one_line_max).
100 ## `chain_one_line_max`
102 Maximum length of a chain to fit on a single line
104 - **Default value**: `60`
105 - **Possible values**: any positive integer
107 #### Lines shorter than `chain_one_line_max`:
109 let lorem = ipsum.dolor().sit().amet().consectetur().adipiscing().elit();
112 #### Lines longer than `chain_one_line_max`:
113 See [`chain_indent`](#chain_indent).
115 ## `closure_block_indent_threshold`
117 How many lines a closure must have before it is block indented. -1 means never use block indent.
119 - **Default value**: `7`
120 - **Possible values**: `-1`, or any positive integer
122 #### Closures shorter than `closure_block_indent_threshold`:
133 #### Closures longer than `closure_block_indent_threshold`:
141 println!("consectetur");
142 println!("adipiscing");
149 Maximum length of comments. No effect unless`wrap_comments = true`.
151 - **Default value**: `80`
152 - **Possible values**: any positive integer
154 **Note:** A value of `0` results in [`wrap_comments`](#wrap_comments) being applied regardless of a line's width.
156 #### Comments shorter than `comment_width`:
158 // Lorem ipsum dolor sit amet, consectetur adipiscing elit.
161 #### Comments longer than `comment_width`:
163 // Lorem ipsum dolor sit amet,
164 // consectetur adipiscing elit.
167 See also [`wrap_comments`](#wrap_comments).
169 ## `condense_wildcard_suffixes`
171 Replace strings of _ wildcards by a single .. in tuple patterns
173 - **Default value**: `false`
174 - **Possible values**: `true`, `false`
179 let (lorem, ipsum, _, _) = (1, 2, 3, 4);
185 let (lorem, ipsum, ..) = (1, 2, 3, 4);
188 ## `control_brace_style`
190 Brace style for control flow constructs
192 - **Default value**: `"AlwaysSameLine"`
193 - **Possible values**: `"AlwaysNextLine"`, `"AlwaysSameLine"`, `"ClosingNextLine"`
195 #### `"AlwaysNextLine"`:
208 #### `"AlwaysSameLine"`:
218 #### `"ClosingNextLine"`:
229 ## `disable_all_formatting`
231 Don't reformat anything
233 - **Default value**: `false`
234 - **Possible values**: `true`, `false`
236 ## `error_on_line_overflow`
238 Error if unable to get all lines within max_width
240 - **Default value**: `true`
241 - **Possible values**: `true`, `false`
243 See also [`max_width`](#max_width).
247 Argument density in functions
249 - **Default value**: `"Tall"`
250 - **Possible values**: `"Compressed"`, `"CompressedIfEmpty"`, `"Tall"`, `"Vertical"`
256 fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet);
258 fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet) {
262 fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: Consectetur,
263 adipiscing: Adipiscing, elit: Elit);
265 fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: Consectetur,
266 adipiscing: Adipiscing, elit: Elit) {
272 #### `"CompressedIfEmpty"`:
276 fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet);
278 fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet) {
282 fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: Consectetur,
283 adipiscing: Adipiscing, elit: Elit);
285 fn lorem(ipsum: Ipsum,
289 consectetur: onsectetur,
290 adipiscing: Adipiscing,
301 fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet);
303 fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet) {
307 fn lorem(ipsum: Ipsum,
311 consectetur: onsectetur,
312 adipiscing: Adipiscing,
315 fn lorem(ipsum: Ipsum,
319 consectetur: onsectetur,
320 adipiscing: Adipiscing,
331 fn lorem(ipsum: Ipsum,
336 fn lorem(ipsum: Ipsum,
343 fn lorem(ipsum: Ipsum,
347 consectetur: onsectetur,
348 adipiscing: Adipiscing,
351 fn lorem(ipsum: Ipsum,
355 consectetur: onsectetur,
356 adipiscing: Adipiscing,
365 Layout of function arguments and tuple structs
367 - **Default value**: `"Visual"`
368 - **Possible values**: `"Block"`, `"Visual"`
375 fn lorem(ipsum: usize) {}
395 fn lorem(ipsum: usize) {}
397 fn lorem(ipsum: usize,
408 ## `fn_args_paren_newline`
410 If function argument parenthesis goes on a newline
412 - **Default value**: `true`
413 - **Possible values**: `true`, `false`
423 -> DolorSitAmetConsecteturAdipiscingElitLoremIpsumDolorSitAmetConsecteturAdipiscingElit {
436 -> DolorSitAmetConsecteturAdipiscingElitLoremIpsumDolorSitAmetConsecteturAdipiscingElit {
443 Brace style for functions
445 - **Default value**: `"SameLineWhere"`
446 - **Possible values**: `"AlwaysNextLine"`, `"PreferSameLine"`, `"SameLineWhere"`
448 #### `"AlwaysNextLine"`:
456 fn lorem(ipsum: usize)
461 fn lorem<T>(ipsum: T)
462 where T: Add + Sub + Mul + Div
468 #### `"PreferSameLine"`:
475 fn lorem(ipsum: usize) {
479 fn lorem<T>(ipsum: T)
480 where T: Add + Sub + Mul + Div {
485 #### `"SameLineWhere"`:
492 fn lorem(ipsum: usize) {
496 fn lorem<T>(ipsum: T)
497 where T: Add + Sub + Mul + Div
505 Indentation for function calls, etc.
507 - **Default value**: `"Visual"`
508 - **Possible values**: `"Block"`, `"Visual"`
540 Maximum width of the args of a function call before falling back to vertical formatting
542 - **Default value**: `60`
543 - **Possible values**: any positive integer
545 **Note:** A value of `0` results in vertical formatting being applied regardless of a line's width.
547 #### Function call shorter than `fn_call_width`:
549 lorem("lorem", "ipsum", "dolor", "sit", "amet", "consectetur", "adipiscing", "elit");
552 #### Function call longer than `fn_call_width`:
554 See [`fn_call_style`](#fn_call_style).
556 ## `fn_empty_single_line`
558 Put empty-body functions on a single line
560 - **Default value**: `true`
561 - **Possible values**: `true`, `false`
576 See also [`control_brace_style`](#control_brace_style).
578 ## `fn_return_indent`
580 Location of return type in function declaration
582 - **Default value**: `"WithArgs"`
583 - **Possible values**: `"WithArgs"`, `"WithWhereClause"`
588 fn lorem(ipsum: Ipsum,
592 consectetur: Consectetur,
593 adipiscing: Adipiscing)
602 #### `"WithWhereClause"`:
605 fn lorem(ipsum: Ipsum,
609 consectetur: Consectetur,
610 adipiscing: Adipiscing)
621 Put single-expression functions on a single line
623 - **Default value**: `false`
624 - **Possible values**: `true`, `false`
629 fn lorem() -> usize {
633 fn lorem() -> usize {
642 fn lorem() -> usize { 42 }
644 fn lorem() -> usize {
650 See also [`control_brace_style`](#control_brace_style).
652 ## `force_explicit_abi`
654 Always print the abi for extern items
656 - **Default value**: `true`
657 - **Possible values**: `true`, `false`
659 **Note:** Non-"C" ABIs are always printed. If `false` then "C" is removed.
665 pub static lorem: c_int;
673 pub static lorem: c_int;
677 ## `force_format_strings`
679 Always format string literals
681 - **Default value**: `false`
682 - **Possible values**: `true`, `false`
684 See [`format_strings`](#format_strings).
686 See also [`max_width`](#max_width).
690 Format string literals where necessary
692 - **Default value**: `false`
693 - **Possible values**: `true`, `false`
698 let lorem = "ipsum dolor sit amet consectetur adipiscing elit lorem ipsum dolor sit";
705 "ipsum dolor sit amet consectetur \
706 adipiscing elit lorem ipsum dolor sit";
709 See also [`force_format_strings`](#force_format_strings), [`max_width`](#max_width).
713 Indentation of generics
715 - **Default value**: `"Visual"`
716 - **Possible values**: `"Block"`, `"Visual"`
726 Adipiscing: Eq = usize,
727 Consectetur: Eq = usize,
733 adipiscing: Adipiscing,
734 consectetur: Consectetur,
744 fn lorem<Ipsum: Eq = usize,
748 Adipiscing: Eq = usize,
749 Consectetur: Eq = usize,
755 adipiscing: Adipiscing,
756 consectetur: Consectetur,
765 Use tab characters for indentation, spaces for alignment
767 - **Default value**: `false`
768 - **Possible values**: `true`, `false`
773 fn lorem() -> usize {
774 42 // spaces before 42
781 fn lorem() -> usize {
786 See also: [`tab_spaces`](#tab_spaces).
788 ## `impl_empty_single_line`
790 Put empty-body implementations on a single line
792 - **Default value**: `true`
793 - **Possible values**: `true`, `false`
808 See also [`item_brace_style`](#item_brace_style).
810 ## `indent_match_arms`
812 Indent match arms instead of keeping them at the same indentation level as the match keyword
814 - **Default value**: `true`
815 - **Possible values**: `true`, `false`
839 See also: [`match_block_trailing_comma`](#match_block_trailing_comma), [`wrap_match_arms`](#wrap_match_arms).
841 ## `item_brace_style`
843 Brace style for structs and enums
845 - **Default value**: `"SameLineWhere"`
846 - **Possible values**: `"AlwaysNextLine"`, `"PreferSameLine"`, `"SameLineWhere"`
848 #### `"AlwaysNextLine"`:
863 #### `"PreferSameLine"`:
876 #### `"SameLineWhere"`:
890 ## `match_block_trailing_comma`
892 Put a trailing comma after a block based match arm (non-block arms are not affected)
894 - **Default value**: `false`
895 - **Possible values**: `true`, `false`
904 Lorem::Dolor => println!("dolor"),
915 Lorem::Dolor => println!("dolor"),
919 See also: [`indent_match_arms`](#indent_match_arms), [`trailing_comma`](#trailing_comma), [`wrap_match_arms`](#wrap_match_arms).
923 Maximum width of each line
925 - **Default value**: `100`
926 - **Possible values**: any positive integer
928 See also [`error_on_line_overflow`](#error_on_line_overflow).
932 Unix or Windows line endings
934 - **Default value**: `"Unix"`
935 - **Possible values**: `"Native"`, `"Unix"`, `"Windows"`
937 ## `normalize_comments`
939 Convert /* */ comments to // comments where possible
941 - **Default value**: `false`
942 - **Possible values**: `true`, `false`
948 fn dolor() -> usize {}
951 fn adipiscing() -> usize {}
958 fn dolor() -> usize {}
961 fn adipiscing() -> usize {}
964 ## `reorder_imported_names`
966 Reorder lists of names in import statements alphabetically
968 - **Default value**: `false`
969 - **Possible values**: `true`, `false`
974 use super::{lorem, ipsum, dolor, sit};
980 use super::{dolor, ipsum, lorem, sit};
983 See also [`reorder_imports`](#reorder_imports).
987 Reorder import statements alphabetically
989 - **Default value**: `false`
990 - **Possible values**: `true`, `false`
1010 See also [`reorder_imported_names`](#reorder_imported_names), [`reorder_imports_in_group`](#reorder_imports_in_group).
1012 ## `reorder_imports_in_group`
1014 Reorder import statements in group
1016 - **Default value**: `false`
1017 - **Possible values**: `true`, `false`
1019 **Note:** This option takes effect only when [`reorder_imports`](#reorder_imports) is set to `true`.
1045 See also [`reorder_imports`](#reorder_imports).
1047 ## `single_line_if_else_max_width`
1049 Maximum line length for single line if-else expressions.
1051 - **Default value**: `50`
1052 - **Possible values**: any positive integer
1054 **Note:** A value of `0` results in if-else expressions being broken regardless of their line's width.
1056 #### Lines shorter than `single_line_if_else_max_width`:
1058 let lorem = if ipsum { dolor } else { sit };
1061 #### Lines longer than `single_line_if_else_max_width`:
1063 let lorem = if ipsum {
1070 See also: [`control_brace_style`](#control_brace_style).
1074 Don't reformat out of line modules
1076 - **Default value**: `false`
1077 - **Possible values**: `true`, `false`
1079 ## `space_after_bound_colon`
1081 Leave a space after the colon in a trait or lifetime bound
1083 - **Default value**: `true`
1084 - **Possible values**: `true`, `false`
1089 fn lorem<T:Eq>(t: T) {
1097 fn lorem<T: Eq>(t: T) {
1102 See also: [`space_before_bound`](#space_before_bound).
1104 ## `space_after_type_annotation_colon`
1106 Leave a space after the colon in a type annotation
1108 - **Default value**: `true`
1109 - **Possible values**: `true`, `false`
1114 fn lorem<T: Eq>(t:T) {
1115 let ipsum:Dolor = sit;
1122 fn lorem<T: Eq>(t: T) {
1123 let ipsum: Dolor = sit;
1127 See also: [`space_before_type_annotation`](#space_before_type_annotation).
1129 ## `space_before_bound`
1131 Leave a space before the colon in a trait or lifetime bound
1133 - **Default value**: `false`
1134 - **Possible values**: `true`, `false`
1139 fn lorem<T: Eq>(t: T) {
1140 let ipsum: Dolor = sit;
1147 fn lorem<T : Eq>(t: T) {
1148 let ipsum: Dolor = sit;
1152 See also: [`space_after_bound_colon`](#space_after_bound_colon).
1154 ## `space_before_type_annotation`
1156 Leave a space before the colon in a type annotation
1158 - **Default value**: `false`
1159 - **Possible values**: `true`, `false`
1164 fn lorem<T: Eq>(t: T) {
1165 let ipsum: Dolor = sit;
1172 fn lorem<T: Eq>(t : T) {
1173 let ipsum : Dolor = sit;
1177 See also: [`space_after_type_annotation_colon`](#space_after_type_annotation_colon).
1179 ## `spaces_around_ranges`
1181 Put spaces around the .. and ... range operators
1183 - **Default value**: `false`
1184 - **Possible values**: `true`, `false`
1195 let lorem = 0 .. 10;
1198 ## `spaces_within_angle_brackets`
1200 Put spaces within non-empty generic arguments
1202 - **Default value**: `false`
1203 - **Possible values**: `true`, `false`
1208 fn lorem<T: Eq>(t: T) {
1216 fn lorem< T: Eq >(t: T) {
1221 See also: [`spaces_within_parens`](#spaces_within_parens), [`spaces_within_square_brackets`](#spaces_within_square_brackets).
1223 ## `spaces_within_parens`
1225 Put spaces within non-empty parentheses
1227 - **Default value**: `false`
1228 - **Possible values**: `true`, `false`
1233 fn lorem<T: Eq>(t: T) {
1234 let lorem = (ipsum, dolor);
1241 fn lorem<T: Eq>( t: T ) {
1242 let lorem = ( ipsum, dolor );
1246 See also: [`spaces_within_angle_brackets`](#spaces_within_angle_brackets), [`spaces_within_square_brackets`](#spaces_within_square_brackets).
1248 ## `spaces_within_square_brackets`
1250 Put spaces within non-empty square brackets
1252 - **Default value**: `false`
1253 - **Possible values**: `true`, `false`
1258 let lorem: [usize; 2] = [ipsum, dolor];
1264 let lorem: [ usize; 2 ] = [ ipsum, dolor ];
1267 See also: [`spaces_within_parens`](#spaces_within_parens), [`spaces_within_angle_brackets`](#spaces_within_angle_brackets).
1269 ## `struct_lit_multiline_style`
1271 Multiline style on literal structs
1273 - **Default value**: `"PreferSingle"`
1274 - **Possible values**: `"ForceMulti"`, `"PreferSingle"`
1276 #### `"ForceMulti"`:
1285 #### `"PreferSingle"`:
1288 let lorem = Lorem { ipsum: dolor, sit: amet };
1291 See also: [`struct_lit_style`](#struct_lit_style), [`struct_lit_width`](#struct_lit_width).
1293 ## `struct_lit_style`
1295 Style of struct definition
1297 - **Default value**: `"Block"`
1298 - **Possible values**: `"Block"`, `"Visual"`
1312 let lorem = Lorem { ipsum: dolor,
1316 See also: [`struct_lit_multiline_style`](#struct_lit_multiline_style), [`struct_lit_style`](#struct_lit_style).
1318 ## `struct_lit_width`
1320 Maximum width in the body of a struct lit before falling back to vertical formatting
1322 - **Default value**: `18`
1323 - **Possible values**: any positive integer
1325 **Note:** A value of `0` results in vertical formatting being applied regardless of a line's width.
1327 #### Lines shorter than `struct_lit_width`:
1329 let lorem = Lorem { ipsum: dolor, sit: amet };
1332 #### Lines longer than `struct_lit_width`:
1333 See [`struct_lit_style`](#struct_lit_style).
1335 See also: [`struct_lit_multiline_style`](#struct_lit_multiline_style), [`struct_lit_style`](#struct_lit_style).
1337 ## `struct_variant_width`
1339 Maximum width in the body of a struct variant before falling back to vertical formatting
1341 - **Default value**: `35`
1342 - **Possible values**: any positive integer
1344 **Note:** A value of `0` results in vertical formatting being applied regardless of a line's width.
1346 #### Struct variants shorter than `struct_variant_width`:
1351 Sit { amet: Consectetur, adipiscing: Elit },
1355 #### Struct variants longer than `struct_variant_width`:
1369 Number of spaces per tab
1371 - **Default value**: `4`
1372 - **Possible values**: any positive integer
1378 let ipsum = dolor();
1380 "amet consectetur adipiscing elit."
1389 let ipsum = dolor();
1391 "amet consectetur adipiscing elit."
1396 See also: [`hard_tabs`](#hard_tabs).
1398 ## `take_source_hints`
1400 Retain some formatting characteristics from the source code
1402 - **Default value**: `false`
1403 - **Possible values**: `true`, `false`
1410 .dolor(|| { sit.amet().consectetur().adipiscing().elit(); });
1426 Note: This only applies if the call chain within the inner closure had already been formatted on separate lines before running rustfmt.
1430 How to handle trailing commas for lists
1432 - **Default value**: `"Vertical"`
1433 - **Possible values**: `"Always"`, `"Never"`, `"Vertical"`
1438 let Lorem { ipsum, dolor, sit, } = amet;
1452 let Lorem { ipsum, dolor, sit } = amet;
1466 let Lorem { ipsum, dolor, sit } = amet;
1477 See also: [`match_block_trailing_comma`](#match_block_trailing_comma).
1479 ## `type_punctuation_density`
1481 Determines if `+` or `=` are wrapped in spaces in the punctuation of types
1483 - **Default value**: `"Wide"`
1484 - **Possible values**: `"Compressed"`, `"Wide"`
1486 #### `"Compressed"`:
1489 fn lorem<Ipsum: Dolor+Sit=Amet>() {
1497 fn lorem<Ipsum: Dolor + Sit = Amet>() {
1502 ## `use_try_shorthand`
1504 Replace uses of the try! macro by the ? shorthand
1506 - **Default value**: `false`
1507 - **Possible values**: `true`, `false`
1512 let lorem = try!(ipsum.map(|dolor|dolor.sit()));
1518 let lorem = ipsum.map(|dolor| dolor.sit())?;
1523 Density of a where clause
1525 - **Default value**: `"CompressedIfEmpty"`
1526 - **Possible values**: `"Compressed"`, `"CompressedIfEmpty"`, `"Tall"`, `"Vertical"`
1528 #### `"Compressed"`:
1532 fn ipsum<Dolor>(dolor: Dolor) -> Sit where Dolor: Eq;
1534 fn ipsum<Dolor>(dolor: Dolor) -> Sit where Dolor: Eq {
1540 #### `"CompressedIfEmpty"`:
1544 fn ipsum<Dolor>(dolor: Dolor) -> Sit where Dolor: Eq;
1546 fn ipsum<Dolor>(dolor: Dolor) -> Sit
1558 fn ipsum<Dolor>(dolor: Dolor) -> Sit
1561 fn ipsum<Dolor>(dolor: Dolor) -> Sit
1569 **Note:** `where_density = "Tall"` currently produces the same output as `where_density = "Vertical"`.
1575 fn ipsum<Dolor>(dolor: Dolor) -> Sit
1578 fn ipsum<Dolor>(dolor: Dolor) -> Sit
1586 **Note:** `where_density = "Vertical"` currently produces the same output as `where_density = "Tall"`.
1588 See also: [`where_layout`](#where_layout), [`where_pred_indent`](#where_pred_indent), [`where_style`](#where_style).
1592 Element layout inside a where clause
1594 - **Default value**: `"Vertical"`
1595 - **Possible values**: `"Horizontal"`, `"HorizontalVertical"`, `"Mixed"`, `"Vertical"`
1597 #### `"Horizontal"`:
1600 fn lorem<Ipsum, Dolor>(ipsum: Ipsum, dolor: Dolor)
1601 where Ipsum: IpsumDolorSitAmet, Dolor: DolorSitAmetConsectetur
1606 fn lorem<Ipsum, Dolor, Sit, Amet>(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet)
1607 where Ipsum: IpsumDolorSitAmet, Dolor: DolorSitAmetConsectetur, Sit: SitAmetConsecteturAdipiscing, Amet: AmetConsecteturAdipiscingElit
1613 #### `"HorizontalVertical"`:
1616 fn lorem<Ipsum, Dolor>(ipsum: Ipsum, dolor: Dolor)
1617 where Ipsum: IpsumDolorSitAmet, Dolor: DolorSitAmetConsectetur
1622 fn lorem<Ipsum, Dolor, Sit, Amet>(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet)
1623 where Ipsum: IpsumDolorSitAmet,
1624 Dolor: DolorSitAmetConsectetur,
1625 Sit: SitAmetConsecteturAdipiscing,
1626 Amet: AmetConsecteturAdipiscingElit
1635 fn lorem<Ipsum, Dolor>(ipsum: Ipsum, dolor: Dolor)
1636 where Ipsum: IpsumDolorSitAmet, Dolor: DolorSitAmetConsectetur
1641 fn lorem<Ipsum, Dolor, Sit, Amet>(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet)
1642 where Ipsum: IpsumDolorSitAmet, Dolor: DolorSitAmetConsectetur,
1643 Sit: SitAmetConsecteturAdipiscing, Amet: AmetConsecteturAdipiscingElit
1652 fn lorem<Ipsum, Dolor>(ipsum: Ipsum, dolor: Dolor)
1653 where Ipsum: IpsumDolorSitAmet,
1654 Dolor: DolorSitAmetConsectetur
1659 fn lorem<Ipsum, Dolor, Sit, Amet>(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet)
1660 where Ipsum: IpsumDolorSitAmet,
1661 Dolor: DolorSitAmetConsectetur,
1662 Sit: SitAmetConsecteturAdipiscing,
1663 Amet: AmetConsecteturAdipiscingElit
1669 See also: [`where_density`](#where_density), [`where_pred_indent`](#where_pred_indent), [`where_style`](#where_style).
1671 ## `where_pred_indent`
1673 Indentation style of a where predicate
1675 - **Default value**: `"Visual"`
1676 - **Possible values**: `"Block"`, `"Visual"`
1681 fn lorem<Ipsum, Dolor, Sit, Amet>() -> T
1694 fn lorem<Ipsum, Dolor, Sit, Amet>() -> T
1704 See also: [`where_density`](#where_density), [`where_layout`](#where_layout), [`where_style`](#where_style).
1708 Overall strategy for where clauses
1710 - **Default value**: `"Default"`
1711 - **Possible values**: `"Default"`, `"Rfc"`
1716 fn lorem<Ipsum, Dolor, Sit, Amet>() -> T
1729 fn lorem<Ipsum, Dolor, Sit, Amet>() -> T
1740 See also: [`where_density`](#where_density), [`where_layout`](#where_layout), [`where_pred_indent`](#where_pred_indent).
1744 Break comments to fit on the line
1746 - **Default value**: `false`
1747 - **Possible values**: `true`, `false`
1752 // Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
1758 // Lorem ipsum dolor sit amet, consectetur adipiscing elit,
1759 // sed do eiusmod tempor incididunt ut labore et dolore
1760 // magna aliqua. Ut enim ad minim veniam, quis nostrud
1761 // exercitation ullamco laboris nisi ut aliquip ex ea
1762 // commodo consequat.
1765 ## `wrap_match_arms`
1767 Wrap multiline match arms in blocks
1769 - **Default value**: `true`
1770 - **Possible values**: `true`, `false`
1778 println!("{}", ipsum);
1792 println!("{}", ipsum);
1794 false => println!("{}", sit),
1798 See also: [`indent_match_arms`](#indent_match_arms), [`match_block_trailing_comma`](#match_block_trailing_comma).
1802 What Write Mode to use when none is supplied: Replace, Overwrite, Display, Diff, Coverage
1804 - **Default value**: `"Replace"`
1805 - **Possible values**: `"Checkstyle"`, `"Coverage"`, `"Diff"`, `"Display"`, `"Overwrite"`, `"Plain"`, `"Replace"`