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**: `"Block"`
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 ## `chain_split_single_child`
117 Split a chain with a single child if its length exceeds [`chain_one_line_max`](#chain_one_line_max).
119 - **Default value**: `false`
120 - **Possible values**: `false`, `true`
125 let files = fs::read_dir("tests/coverage/source").expect("Couldn't read source dir");
131 let files = fs::read_dir("tests/coverage/source")
132 .expect("Couldn't read source dir");
135 See also [`chain_one_line_max`](#chain_one_line_max).
137 ## `closure_block_indent_threshold`
139 How many lines a closure must have before it is block indented. -1 means never use block indent.
141 - **Default value**: `7`
142 - **Possible values**: `-1`, or any positive integer
144 #### Closures shorter than `closure_block_indent_threshold`:
155 #### Closures longer than `closure_block_indent_threshold`:
163 println!("consectetur");
164 println!("adipiscing");
169 ## `combine_control_expr`
171 Combine control expressions with function calls.
173 - **Default value**: `true`
174 - **Possible values**: `true`, `false`
188 foo!(if let Some(..) = x {
201 foo!(while let Some(..) = x {
227 Maximum length of comments. No effect unless`wrap_comments = true`.
229 - **Default value**: `80`
230 - **Possible values**: any positive integer
232 **Note:** A value of `0` results in [`wrap_comments`](#wrap_comments) being applied regardless of a line's width.
234 #### Comments shorter than `comment_width`:
236 // Lorem ipsum dolor sit amet, consectetur adipiscing elit.
239 #### Comments longer than `comment_width`:
241 // Lorem ipsum dolor sit amet,
242 // consectetur adipiscing elit.
245 See also [`wrap_comments`](#wrap_comments).
247 ## `condense_wildcard_suffixes`
249 Replace strings of _ wildcards by a single .. in tuple patterns
251 - **Default value**: `false`
252 - **Possible values**: `true`, `false`
257 let (lorem, ipsum, _, _) = (1, 2, 3, 4);
263 let (lorem, ipsum, ..) = (1, 2, 3, 4);
268 Indent style for control flow statements
270 - **Default value**: `"Rfc"`
271 - **Possible values**: `"Rfc"`, `"Legacy"`
294 See also: [`control_brace_style`](#control_brace_style).
296 ## `control_brace_style`
298 Brace style for control flow constructs
300 - **Default value**: `"AlwaysSameLine"`
301 - **Possible values**: `"AlwaysNextLine"`, `"AlwaysSameLine"`, `"ClosingNextLine"`
303 #### `"AlwaysNextLine"`:
316 #### `"AlwaysSameLine"`:
326 #### `"ClosingNextLine"`:
337 ## `disable_all_formatting`
339 Don't reformat anything
341 - **Default value**: `false`
342 - **Possible values**: `true`, `false`
344 ## `error_on_line_overflow`
346 Error if unable to get all lines within max_width
348 - **Default value**: `true`
349 - **Possible values**: `true`, `false`
351 See also [`max_width`](#max_width).
355 Argument density in functions
357 - **Default value**: `"Tall"`
358 - **Possible values**: `"Compressed"`, `"CompressedIfEmpty"`, `"Tall"`, `"Vertical"`
364 fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet);
366 fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet) {
370 fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: Consectetur,
371 adipiscing: Adipiscing, elit: Elit);
373 fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: Consectetur,
374 adipiscing: Adipiscing, elit: Elit) {
380 #### `"CompressedIfEmpty"`:
384 fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet);
386 fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet) {
390 fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: Consectetur,
391 adipiscing: Adipiscing, elit: Elit);
393 fn lorem(ipsum: Ipsum,
397 consectetur: onsectetur,
398 adipiscing: Adipiscing,
409 fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet);
411 fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet) {
415 fn lorem(ipsum: Ipsum,
419 consectetur: onsectetur,
420 adipiscing: Adipiscing,
423 fn lorem(ipsum: Ipsum,
427 consectetur: onsectetur,
428 adipiscing: Adipiscing,
439 fn lorem(ipsum: Ipsum,
444 fn lorem(ipsum: Ipsum,
451 fn lorem(ipsum: Ipsum,
455 consectetur: onsectetur,
456 adipiscing: Adipiscing,
459 fn lorem(ipsum: Ipsum,
463 consectetur: onsectetur,
464 adipiscing: Adipiscing,
473 Layout of function arguments and tuple structs
475 - **Default value**: `"Block"`
476 - **Possible values**: `"Block"`, `"Visual"`
483 fn lorem(ipsum: usize) {}
503 fn lorem(ipsum: usize) {}
505 fn lorem(ipsum: usize,
516 ## `fn_args_paren_newline`
518 If function argument parenthesis goes on a newline
520 - **Default value**: `false`
521 - **Possible values**: `true`, `false`
531 -> DolorSitAmetConsecteturAdipiscingElitLoremIpsumDolorSitAmetConsecteturAdipiscingElit {
544 -> DolorSitAmetConsecteturAdipiscingElitLoremIpsumDolorSitAmetConsecteturAdipiscingElit {
551 Brace style for functions
553 - **Default value**: `"SameLineWhere"`
554 - **Possible values**: `"AlwaysNextLine"`, `"PreferSameLine"`, `"SameLineWhere"`
556 #### `"AlwaysNextLine"`:
564 fn lorem(ipsum: usize)
569 fn lorem<T>(ipsum: T)
570 where T: Add + Sub + Mul + Div
576 #### `"PreferSameLine"`:
583 fn lorem(ipsum: usize) {
587 fn lorem<T>(ipsum: T)
588 where T: Add + Sub + Mul + Div {
593 #### `"SameLineWhere"`:
600 fn lorem(ipsum: usize) {
604 fn lorem<T>(ipsum: T)
605 where T: Add + Sub + Mul + Div
613 Indentation for function calls, etc.
615 - **Default value**: `"Block"`
616 - **Possible values**: `"Block"`, `"Visual"`
648 Maximum width of the args of a function call before falling back to vertical formatting
650 - **Default value**: `60`
651 - **Possible values**: any positive integer
653 **Note:** A value of `0` results in vertical formatting being applied regardless of a line's width.
655 #### Function call shorter than `fn_call_width`:
657 lorem("lorem", "ipsum", "dolor", "sit", "amet", "consectetur", "adipiscing", "elit");
660 #### Function call longer than `fn_call_width`:
662 See [`fn_call_style`](#fn_call_style).
664 ## `fn_empty_single_line`
666 Put empty-body functions on a single line
668 - **Default value**: `true`
669 - **Possible values**: `true`, `false`
684 See also [`control_brace_style`](#control_brace_style).
686 ## `fn_return_indent`
688 Location of return type in function declaration
690 - **Default value**: `"WithArgs"`
691 - **Possible values**: `"WithArgs"`, `"WithWhereClause"`
696 fn lorem(ipsum: Ipsum,
700 consectetur: Consectetur,
701 adipiscing: Adipiscing)
710 #### `"WithWhereClause"`:
713 fn lorem(ipsum: Ipsum,
717 consectetur: Consectetur,
718 adipiscing: Adipiscing)
729 Put single-expression functions on a single line
731 - **Default value**: `false`
732 - **Possible values**: `true`, `false`
737 fn lorem() -> usize {
741 fn lorem() -> usize {
750 fn lorem() -> usize { 42 }
752 fn lorem() -> usize {
758 See also [`control_brace_style`](#control_brace_style).
760 ## `force_explicit_abi`
762 Always print the abi for extern items
764 - **Default value**: `true`
765 - **Possible values**: `true`, `false`
767 **Note:** Non-"C" ABIs are always printed. If `false` then "C" is removed.
773 pub static lorem: c_int;
781 pub static lorem: c_int;
785 ## `force_format_strings`
787 Always format string literals
789 - **Default value**: `false`
790 - **Possible values**: `true`, `false`
792 See [`format_strings`](#format_strings).
794 See also [`max_width`](#max_width).
798 Format string literals where necessary
800 - **Default value**: `false`
801 - **Possible values**: `true`, `false`
806 let lorem = "ipsum dolor sit amet consectetur adipiscing elit lorem ipsum dolor sit";
813 "ipsum dolor sit amet consectetur \
814 adipiscing elit lorem ipsum dolor sit";
817 See also [`force_format_strings`](#force_format_strings), [`max_width`](#max_width).
821 Indentation of generics
823 - **Default value**: `"Block"`
824 - **Possible values**: `"Block"`, `"Visual"`
834 Adipiscing: Eq = usize,
835 Consectetur: Eq = usize,
841 adipiscing: Adipiscing,
842 consectetur: Consectetur,
852 fn lorem<Ipsum: Eq = usize,
856 Adipiscing: Eq = usize,
857 Consectetur: Eq = usize,
863 adipiscing: Adipiscing,
864 consectetur: Consectetur,
873 Use tab characters for indentation, spaces for alignment
875 - **Default value**: `false`
876 - **Possible values**: `true`, `false`
881 fn lorem() -> usize {
882 42 // spaces before 42
889 fn lorem() -> usize {
894 See also: [`tab_spaces`](#tab_spaces).
896 ## `impl_empty_single_line`
898 Put empty-body implementations on a single line
900 - **Default value**: `true`
901 - **Possible values**: `true`, `false`
916 See also [`item_brace_style`](#item_brace_style).
918 ## `indent_match_arms`
920 Indent match arms instead of keeping them at the same indentation level as the match keyword
922 - **Default value**: `true`
923 - **Possible values**: `true`, `false`
947 See also: [`match_block_trailing_comma`](#match_block_trailing_comma), [`wrap_match_arms`](#wrap_match_arms).
949 ## `item_brace_style`
951 Brace style for structs and enums
953 - **Default value**: `"SameLineWhere"`
954 - **Possible values**: `"AlwaysNextLine"`, `"PreferSameLine"`, `"SameLineWhere"`
956 #### `"AlwaysNextLine"`:
971 #### `"PreferSameLine"`:
984 #### `"SameLineWhere"`:
998 ## `match_block_trailing_comma`
1000 Put a trailing comma after a block based match arm (non-block arms are not affected)
1002 - **Default value**: `false`
1003 - **Possible values**: `true`, `false`
1012 Lorem::Dolor => println!("dolor"),
1023 Lorem::Dolor => println!("dolor"),
1027 See also: [`indent_match_arms`](#indent_match_arms), [`trailing_comma`](#trailing_comma), [`wrap_match_arms`](#wrap_match_arms).
1031 Maximum width of each line
1033 - **Default value**: `100`
1034 - **Possible values**: any positive integer
1036 See also [`error_on_line_overflow`](#error_on_line_overflow).
1040 Unix or Windows line endings
1042 - **Default value**: `"Unix"`
1043 - **Possible values**: `"Native"`, `"Unix"`, `"Windows"`
1045 ## `normalize_comments`
1047 Convert /* */ comments to // comments where possible
1049 - **Default value**: `false`
1050 - **Possible values**: `true`, `false`
1056 fn dolor() -> usize {}
1059 fn adipiscing() -> usize {}
1066 fn dolor() -> usize {}
1069 fn adipiscing() -> usize {}
1072 ## `reorder_imported_names`
1074 Reorder lists of names in import statements alphabetically
1076 - **Default value**: `false`
1077 - **Possible values**: `true`, `false`
1082 use super::{lorem, ipsum, dolor, sit};
1088 use super::{dolor, ipsum, lorem, sit};
1091 See also [`reorder_imports`](#reorder_imports).
1093 ## `reorder_imports`
1095 Reorder import statements alphabetically
1097 - **Default value**: `false`
1098 - **Possible values**: `true`, `false`
1118 See also [`reorder_imported_names`](#reorder_imported_names), [`reorder_imports_in_group`](#reorder_imports_in_group).
1120 ## `reorder_imports_in_group`
1122 Reorder import statements in group
1124 - **Default value**: `false`
1125 - **Possible values**: `true`, `false`
1127 **Note:** This option takes effect only when [`reorder_imports`](#reorder_imports) is set to `true`.
1153 See also [`reorder_imports`](#reorder_imports).
1155 ## `single_line_if_else_max_width`
1157 Maximum line length for single line if-else expressions.
1159 - **Default value**: `50`
1160 - **Possible values**: any positive integer
1162 **Note:** A value of `0` results in if-else expressions being broken regardless of their line's width.
1164 #### Lines shorter than `single_line_if_else_max_width`:
1166 let lorem = if ipsum { dolor } else { sit };
1169 #### Lines longer than `single_line_if_else_max_width`:
1171 let lorem = if ipsum {
1178 See also: [`control_brace_style`](#control_brace_style).
1182 Don't reformat out of line modules
1184 - **Default value**: `false`
1185 - **Possible values**: `true`, `false`
1187 ## `space_after_bound_colon`
1189 Leave a space after the colon in a trait or lifetime bound
1191 - **Default value**: `true`
1192 - **Possible values**: `true`, `false`
1197 fn lorem<T:Eq>(t: T) {
1205 fn lorem<T: Eq>(t: T) {
1210 See also: [`space_before_bound`](#space_before_bound).
1212 ## `struct_field_align_threshold`
1214 The maximum diff of width between struct fields to be aligned with each other.
1216 - **Default value** : 0
1217 - **Possible values**: any positive integer
1239 ## `space_after_struct_lit_field_colon`
1241 Leave a space after the colon in a struct literal field
1243 - **Default value**: `true`
1244 - **Possible values**: `true`, `false`
1264 See also: [`space_before_struct_lit_field_colon`](#space_before_struct_lit_field_colon).
1266 ## `space_after_type_annotation_colon`
1268 Leave a space after the colon in a type annotation
1270 - **Default value**: `true`
1271 - **Possible values**: `true`, `false`
1276 fn lorem<T: Eq>(t:T) {
1277 let ipsum:Dolor = sit;
1284 fn lorem<T: Eq>(t: T) {
1285 let ipsum: Dolor = sit;
1289 See also: [`space_before_type_annotation`](#space_before_type_annotation).
1291 ## `space_before_bound`
1293 Leave a space before the colon in a trait or lifetime bound
1295 - **Default value**: `false`
1296 - **Possible values**: `true`, `false`
1301 fn lorem<T: Eq>(t: T) {
1302 let ipsum: Dolor = sit;
1309 fn lorem<T : Eq>(t: T) {
1310 let ipsum: Dolor = sit;
1314 See also: [`space_after_bound_colon`](#space_after_bound_colon).
1316 ## `space_before_struct_lit_field_colon`
1318 Leave a space before the colon in a struct literal field
1320 - **Default value**: `false`
1321 - **Possible values**: `true`, `false`
1341 See also: [`space_after_struct_lit_field_colon`](#space_after_struct_lit_field_colon).
1343 ## `space_before_type_annotation`
1345 Leave a space before the colon in a type annotation
1347 - **Default value**: `false`
1348 - **Possible values**: `true`, `false`
1353 fn lorem<T: Eq>(t: T) {
1354 let ipsum: Dolor = sit;
1361 fn lorem<T: Eq>(t : T) {
1362 let ipsum : Dolor = sit;
1366 See also: [`space_after_type_annotation_colon`](#space_after_type_annotation_colon).
1368 ## `spaces_around_ranges`
1370 Put spaces around the .. and ... range operators
1372 - **Default value**: `false`
1373 - **Possible values**: `true`, `false`
1384 let lorem = 0 .. 10;
1387 ## `spaces_within_angle_brackets`
1389 Put spaces within non-empty generic arguments
1391 - **Default value**: `false`
1392 - **Possible values**: `true`, `false`
1397 fn lorem<T: Eq>(t: T) {
1405 fn lorem< T: Eq >(t: T) {
1410 See also: [`spaces_within_parens`](#spaces_within_parens), [`spaces_within_square_brackets`](#spaces_within_square_brackets).
1412 ## `spaces_within_parens`
1414 Put spaces within non-empty parentheses
1416 - **Default value**: `false`
1417 - **Possible values**: `true`, `false`
1422 fn lorem<T: Eq>(t: T) {
1423 let lorem = (ipsum, dolor);
1430 fn lorem<T: Eq>( t: T ) {
1431 let lorem = ( ipsum, dolor );
1435 See also: [`spaces_within_angle_brackets`](#spaces_within_angle_brackets), [`spaces_within_square_brackets`](#spaces_within_square_brackets).
1437 ## `spaces_within_square_brackets`
1439 Put spaces within non-empty square brackets
1441 - **Default value**: `false`
1442 - **Possible values**: `true`, `false`
1447 let lorem: [usize; 2] = [ipsum, dolor];
1453 let lorem: [ usize; 2 ] = [ ipsum, dolor ];
1456 See also: [`spaces_within_parens`](#spaces_within_parens), [`spaces_within_angle_brackets`](#spaces_within_angle_brackets).
1458 ## `struct_lit_multiline_style`
1460 Multiline style on literal structs
1462 - **Default value**: `"PreferSingle"`
1463 - **Possible values**: `"ForceMulti"`, `"PreferSingle"`
1465 #### `"ForceMulti"`:
1474 #### `"PreferSingle"`:
1477 let lorem = Lorem { ipsum: dolor, sit: amet };
1480 See also: [`struct_lit_style`](#struct_lit_style), [`struct_lit_width`](#struct_lit_width).
1482 ## `struct_lit_style`
1484 Style of struct definition
1486 - **Default value**: `"Block"`
1487 - **Possible values**: `"Block"`, `"Visual"`
1501 let lorem = Lorem { ipsum: dolor,
1505 See also: [`struct_lit_multiline_style`](#struct_lit_multiline_style), [`struct_lit_style`](#struct_lit_style).
1507 ## `struct_lit_width`
1509 Maximum width in the body of a struct lit before falling back to vertical formatting
1511 - **Default value**: `18`
1512 - **Possible values**: any positive integer
1514 **Note:** A value of `0` results in vertical formatting being applied regardless of a line's width.
1516 #### Lines shorter than `struct_lit_width`:
1518 let lorem = Lorem { ipsum: dolor, sit: amet };
1521 #### Lines longer than `struct_lit_width`:
1522 See [`struct_lit_style`](#struct_lit_style).
1524 See also: [`struct_lit_multiline_style`](#struct_lit_multiline_style), [`struct_lit_style`](#struct_lit_style).
1526 ## `struct_variant_width`
1528 Maximum width in the body of a struct variant before falling back to vertical formatting
1530 - **Default value**: `35`
1531 - **Possible values**: any positive integer
1533 **Note:** A value of `0` results in vertical formatting being applied regardless of a line's width.
1535 #### Struct variants shorter than `struct_variant_width`:
1540 Sit { amet: Consectetur, adipiscing: Elit },
1544 #### Struct variants longer than `struct_variant_width`:
1558 Number of spaces per tab
1560 - **Default value**: `4`
1561 - **Possible values**: any positive integer
1567 let ipsum = dolor();
1569 "amet consectetur adipiscing elit."
1578 let ipsum = dolor();
1580 "amet consectetur adipiscing elit."
1585 See also: [`hard_tabs`](#hard_tabs).
1587 ## `take_source_hints`
1589 Retain some formatting characteristics from the source code
1591 - **Default value**: `false`
1592 - **Possible values**: `true`, `false`
1599 .dolor(|| { sit.amet().consectetur().adipiscing().elit(); });
1615 Note: This only applies if the call chain within the inner closure had already been formatted on separate lines before running rustfmt.
1619 How to handle trailing commas for lists
1621 - **Default value**: `"Vertical"`
1622 - **Possible values**: `"Always"`, `"Never"`, `"Vertical"`
1627 let Lorem { ipsum, dolor, sit, } = amet;
1641 let Lorem { ipsum, dolor, sit } = amet;
1655 let Lorem { ipsum, dolor, sit } = amet;
1666 See also: [`match_block_trailing_comma`](#match_block_trailing_comma).
1668 ## `type_punctuation_density`
1670 Determines if `+` or `=` are wrapped in spaces in the punctuation of types
1672 - **Default value**: `"Wide"`
1673 - **Possible values**: `"Compressed"`, `"Wide"`
1675 #### `"Compressed"`:
1678 fn lorem<Ipsum: Dolor+Sit=Amet>() {
1686 fn lorem<Ipsum: Dolor + Sit = Amet>() {
1691 ## `use_try_shorthand`
1693 Replace uses of the try! macro by the ? shorthand
1695 - **Default value**: `false`
1696 - **Possible values**: `true`, `false`
1701 let lorem = try!(ipsum.map(|dolor|dolor.sit()));
1707 let lorem = ipsum.map(|dolor| dolor.sit())?;
1712 Density of a where clause
1714 - **Default value**: `"CompressedIfEmpty"`
1715 - **Possible values**: `"Compressed"`, `"CompressedIfEmpty"`, `"Tall"`, `"Vertical"`
1717 #### `"Compressed"`:
1721 fn ipsum<Dolor>(dolor: Dolor) -> Sit where Dolor: Eq;
1723 fn ipsum<Dolor>(dolor: Dolor) -> Sit where Dolor: Eq {
1729 #### `"CompressedIfEmpty"`:
1733 fn ipsum<Dolor>(dolor: Dolor) -> Sit where Dolor: Eq;
1735 fn ipsum<Dolor>(dolor: Dolor) -> Sit
1747 fn ipsum<Dolor>(dolor: Dolor) -> Sit
1750 fn ipsum<Dolor>(dolor: Dolor) -> Sit
1758 **Note:** `where_density = "Tall"` currently produces the same output as `where_density = "Vertical"`.
1764 fn ipsum<Dolor>(dolor: Dolor) -> Sit
1767 fn ipsum<Dolor>(dolor: Dolor) -> Sit
1775 **Note:** `where_density = "Vertical"` currently produces the same output as `where_density = "Tall"`.
1777 See also: [`where_layout`](#where_layout), [`where_pred_indent`](#where_pred_indent), [`where_style`](#where_style).
1781 Element layout inside a where clause
1783 - **Default value**: `"Vertical"`
1784 - **Possible values**: `"Horizontal"`, `"HorizontalVertical"`, `"Mixed"`, `"Vertical"`
1786 #### `"Horizontal"`:
1789 fn lorem<Ipsum, Dolor>(ipsum: Ipsum, dolor: Dolor)
1790 where Ipsum: IpsumDolorSitAmet, Dolor: DolorSitAmetConsectetur
1795 fn lorem<Ipsum, Dolor, Sit, Amet>(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet)
1796 where Ipsum: IpsumDolorSitAmet, Dolor: DolorSitAmetConsectetur, Sit: SitAmetConsecteturAdipiscing, Amet: AmetConsecteturAdipiscingElit
1802 #### `"HorizontalVertical"`:
1805 fn lorem<Ipsum, Dolor>(ipsum: Ipsum, dolor: Dolor)
1806 where Ipsum: IpsumDolorSitAmet, Dolor: DolorSitAmetConsectetur
1811 fn lorem<Ipsum, Dolor, Sit, Amet>(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet)
1812 where Ipsum: IpsumDolorSitAmet,
1813 Dolor: DolorSitAmetConsectetur,
1814 Sit: SitAmetConsecteturAdipiscing,
1815 Amet: AmetConsecteturAdipiscingElit
1824 fn lorem<Ipsum, Dolor>(ipsum: Ipsum, dolor: Dolor)
1825 where Ipsum: IpsumDolorSitAmet, Dolor: DolorSitAmetConsectetur
1830 fn lorem<Ipsum, Dolor, Sit, Amet>(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet)
1831 where Ipsum: IpsumDolorSitAmet, Dolor: DolorSitAmetConsectetur,
1832 Sit: SitAmetConsecteturAdipiscing, Amet: AmetConsecteturAdipiscingElit
1841 fn lorem<Ipsum, Dolor>(ipsum: Ipsum, dolor: Dolor)
1842 where Ipsum: IpsumDolorSitAmet,
1843 Dolor: DolorSitAmetConsectetur
1848 fn lorem<Ipsum, Dolor, Sit, Amet>(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet)
1849 where Ipsum: IpsumDolorSitAmet,
1850 Dolor: DolorSitAmetConsectetur,
1851 Sit: SitAmetConsecteturAdipiscing,
1852 Amet: AmetConsecteturAdipiscingElit
1858 See also: [`where_density`](#where_density), [`where_pred_indent`](#where_pred_indent), [`where_style`](#where_style).
1860 ## `where_pred_indent`
1862 Indentation style of a where predicate
1864 - **Default value**: `"Visual"`
1865 - **Possible values**: `"Block"`, `"Visual"`
1870 fn lorem<Ipsum, Dolor, Sit, Amet>() -> T
1883 fn lorem<Ipsum, Dolor, Sit, Amet>() -> T
1893 See also: [`where_density`](#where_density), [`where_layout`](#where_layout), [`where_style`](#where_style).
1897 Overall strategy for where clauses
1899 - **Default value**: `"Rfc"`
1900 - **Possible values**: `"Rfc"`, `"Legacy"`
1905 fn lorem<Ipsum, Dolor, Sit, Amet>() -> T
1919 fn lorem<Ipsum, Dolor, Sit, Amet>() -> T
1929 See also: [`where_density`](#where_density), [`where_layout`](#where_layout), [`where_pred_indent`](#where_pred_indent).
1933 Break comments to fit on the line
1935 - **Default value**: `false`
1936 - **Possible values**: `true`, `false`
1941 // 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.
1947 // Lorem ipsum dolor sit amet, consectetur adipiscing elit,
1948 // sed do eiusmod tempor incididunt ut labore et dolore
1949 // magna aliqua. Ut enim ad minim veniam, quis nostrud
1950 // exercitation ullamco laboris nisi ut aliquip ex ea
1951 // commodo consequat.
1954 ## `wrap_match_arms`
1956 Wrap multiline match arms in blocks
1958 - **Default value**: `true`
1959 - **Possible values**: `true`, `false`
1967 println!("{}", ipsum);
1981 println!("{}", ipsum);
1983 false => println!("{}", sit),
1987 See also: [`indent_match_arms`](#indent_match_arms), [`match_block_trailing_comma`](#match_block_trailing_comma).
1991 What Write Mode to use when none is supplied: Replace, Overwrite, Display, Diff, Coverage
1993 - **Default value**: `"Replace"`
1994 - **Possible values**: `"Checkstyle"`, `"Coverage"`, `"Diff"`, `"Display"`, `"Overwrite"`, `"Plain"`, `"Replace"`