## Config

# Struct Config

Source

    pub struct Config {Show 87 fields
        max_width: (Cell<bool>, bool, <MaxWidth as StyleEditionDefault>::ConfigType, bool, bool),
        hard_tabs: (Cell<bool>, bool, <HardTabs as StyleEditionDefault>::ConfigType, bool, bool),
        tab_spaces: (Cell<bool>, bool, <TabSpaces as StyleEditionDefault>::ConfigType, bool, bool),
        newline_style: (Cell<bool>, bool, <NewlineStyleConfig as StyleEditionDefault>::ConfigType, bool, bool),
        indent_style: (Cell<bool>, bool, <IndentStyleConfig as StyleEditionDefault>::ConfigType, bool, bool),
        use_small_heuristics: (Cell<bool>, bool, <UseSmallHeuristics as StyleEditionDefault>::ConfigType, bool, bool),
        width_heuristics: (Cell<bool>, bool, <WidthHeuristicsConfig as StyleEditionDefault>::ConfigType, bool, bool),
        fn_call_width: (Cell<bool>, bool, <FnCallWidth as StyleEditionDefault>::ConfigType, bool, bool),
        attr_fn_like_width: (Cell<bool>, bool, <AttrFnLikeWidth as StyleEditionDefault>::ConfigType, bool, bool),
        struct_lit_width: (Cell<bool>, bool, <StructLitWidth as StyleEditionDefault>::ConfigType, bool, bool),
        struct_variant_width: (Cell<bool>, bool, <StructVariantWidth as StyleEditionDefault>::ConfigType, bool, bool),
        array_width: (Cell<bool>, bool, <ArrayWidth as StyleEditionDefault>::ConfigType, bool, bool),
        chain_width: (Cell<bool>, bool, <ChainWidth as StyleEditionDefault>::ConfigType, bool, bool),
        single_line_if_else_max_width: (Cell<bool>, bool, <SingleLineIfElseMaxWidth as StyleEditionDefault>::ConfigType, bool, bool),
        single_line_let_else_max_width: (Cell<bool>, bool, <SingleLineLetElseMaxWidth as StyleEditionDefault>::ConfigType, bool, bool),
        wrap_comments: (Cell<bool>, bool, <WrapComments as StyleEditionDefault>::ConfigType, bool, bool),
        format_code_in_doc_comments: (Cell<bool>, bool, <FormatCodeInDocComments as StyleEditionDefault>::ConfigType, bool, bool),
        doc_comment_code_block_width: (Cell<bool>, bool, <DocCommentCodeBlockWidth as StyleEditionDefault>::ConfigType, bool, bool),
        comment_width: (Cell<bool>, bool, <CommentWidth as StyleEditionDefault>::ConfigType, bool, bool),
        normalize_comments: (Cell<bool>, bool, <NormalizeComments as StyleEditionDefault>::ConfigType, bool, bool),
        normalize_doc_attributes: (Cell<bool>, bool, <NormalizeDocAttributes as StyleEditionDefault>::ConfigType, bool, bool),
        format_strings: (Cell<bool>, bool, <FormatStrings as StyleEditionDefault>::ConfigType, bool, bool),
        format_macro_matchers: (Cell<bool>, bool, <FormatMacroMatchers as StyleEditionDefault>::ConfigType, bool, bool),
        format_macro_bodies: (Cell<bool>, bool, <FormatMacroBodies as StyleEditionDefault>::ConfigType, bool, bool),
        skip_macro_invocations: (Cell<bool>, bool, <SkipMacroInvocations as StyleEditionDefault>::ConfigType, bool, bool),
        hex_literal_case: (Cell<bool>, bool, <HexLiteralCaseConfig as StyleEditionDefault>::ConfigType, bool, bool),
        empty_item_single_line: (Cell<bool>, bool, <EmptyItemSingleLine as StyleEditionDefault>::ConfigType, bool, bool),
        struct_lit_single_line: (Cell<bool>, bool, <StructLitSingleLine as StyleEditionDefault>::ConfigType, bool, bool),
        fn_single_line: (Cell<bool>, bool, <FnSingleLine as StyleEditionDefault>::ConfigType, bool, bool),
        where_single_line: (Cell<bool>, bool, <WhereSingleLine as StyleEditionDefault>::ConfigType, bool, bool),
        imports_indent: (Cell<bool>, bool, <ImportsIndent as StyleEditionDefault>::ConfigType, bool, bool),
        imports_layout: (Cell<bool>, bool, <ImportsLayout as StyleEditionDefault>::ConfigType, bool, bool),
        imports_granularity: (Cell<bool>, bool, <ImportsGranularityConfig as StyleEditionDefault>::ConfigType, bool, bool),
        group_imports: (Cell<bool>, bool, <GroupImportsTacticConfig as StyleEditionDefault>::ConfigType, bool, bool),
        merge_imports: (Cell<bool>, bool, <MergeImports as StyleEditionDefault>::ConfigType, bool, bool),
        reorder_imports: (Cell<bool>, bool, <ReorderImports as StyleEditionDefault>::ConfigType, bool, bool),
        reorder_modules: (Cell<bool>, bool, <ReorderModules as StyleEditionDefault>::ConfigType, bool, bool),
        reorder_impl_items: (Cell<bool>, bool, <ReorderImplItems as StyleEditionDefault>::ConfigType, bool, bool),
        type_punctuation_density: (Cell<bool>, bool, <TypePunctuationDensity as StyleEditionDefault>::ConfigType, bool, bool),
        space_before_colon: (Cell<bool>, bool, <SpaceBeforeColon as StyleEditionDefault>::ConfigType, bool, bool),
        space_after_colon: (Cell<bool>, bool, <SpaceAfterColon as StyleEditionDefault>::ConfigType, bool, bool),
        spaces_around_ranges: (Cell<bool>, bool, <SpacesAroundRanges as StyleEditionDefault>::ConfigType, bool, bool),
        binop_separator: (Cell<bool>, bool, <BinopSeparator as StyleEditionDefault>::ConfigType, bool, bool),
        remove_nested_parens: (Cell<bool>, bool, <RemoveNestedParens as StyleEditionDefault>::ConfigType, bool, bool),
        combine_control_expr: (Cell<bool>, bool, <CombineControlExpr as StyleEditionDefault>::ConfigType, bool, bool),
        short_array_element_width_threshold: (Cell<bool>, bool, <ShortArrayElementWidthThreshold as StyleEditionDefault>::ConfigType, bool, bool),
        overflow_delimited_expr: (Cell<bool>, bool, <OverflowDelimitedExpr as StyleEditionDefault>::ConfigType, bool, bool),
        struct_field_align_threshold: (Cell<bool>, bool, <StructFieldAlignThreshold as StyleEditionDefault>::ConfigType, bool, bool),
        enum_discrim_align_threshold: (Cell<bool>, bool, <EnumDiscrimAlignThreshold as StyleEditionDefault>::ConfigType, bool, bool),
        match_arm_blocks: (Cell<bool>, bool, <MatchArmBlocks as StyleEditionDefault>::ConfigType, bool, bool),
        match_arm_leading_pipes: (Cell<bool>, bool, <MatchArmLeadingPipeConfig as StyleEditionDefault>::ConfigType, bool, bool),
        force_multiline_blocks: (Cell<bool>, bool, <ForceMultilineBlocks as StyleEditionDefault>::ConfigType, bool, bool),
        fn_args_layout: (Cell<bool>, bool, <FnArgsLayout as StyleEditionDefault>::ConfigType, bool, bool),
        fn_params_layout: (Cell<bool>, bool, <FnParamsLayout as StyleEditionDefault>::ConfigType, bool, bool),
        brace_style: (Cell<bool>, bool, <BraceStyleConfig as StyleEditionDefault>::ConfigType, bool, bool),
        control_brace_style: (Cell<bool>, bool, <ControlBraceStyleConfig as StyleEditionDefault>::ConfigType, bool, bool),
        trailing_semicolon: (Cell<bool>, bool, <TrailingSemicolon as StyleEditionDefault>::ConfigType, bool, bool),
        trailing_comma: (Cell<bool>, bool, <TrailingComma as StyleEditionDefault>::ConfigType, bool, bool),
        match_block_trailing_comma: (Cell<bool>, bool, <MatchBlockTrailingComma as StyleEditionDefault>::ConfigType, bool, bool),
        blank_lines_upper_bound: (Cell<bool>, bool, <BlankLinesUpperBound as StyleEditionDefault>::ConfigType, bool, bool),
        blank_lines_lower_bound: (Cell<bool>, bool, <BlankLinesLowerBound as StyleEditionDefault>::ConfigType, bool, bool),
        edition: (Cell<bool>, bool, <EditionConfig as StyleEditionDefault>::ConfigType, bool, bool),
        style_edition: (Cell<bool>, bool, <StyleEditionConfig as StyleEditionDefault>::ConfigType, bool, bool),
        version: (Cell<bool>, bool, <VersionConfig as StyleEditionDefault>::ConfigType, bool, bool),
        inline_attribute_width: (Cell<bool>, bool, <InlineAttributeWidth as StyleEditionDefault>::ConfigType, bool, bool),
        format_generated_files: (Cell<bool>, bool, <FormatGeneratedFiles as StyleEditionDefault>::ConfigType, bool, bool),
        generated_marker_line_search_limit: (Cell<bool>, bool, <GeneratedMarkerLineSearchLimit as StyleEditionDefault>::ConfigType, bool, bool),
        merge_derives: (Cell<bool>, bool, <MergeDerives as StyleEditionDefault>::ConfigType, bool, bool),
        use_try_shorthand: (Cell<bool>, bool, <UseTryShorthand as StyleEditionDefault>::ConfigType, bool, bool),
        use_field_init_shorthand: (Cell<bool>, bool, <UseFieldInitShorthand as StyleEditionDefault>::ConfigType, bool, bool),
        force_explicit_abi: (Cell<bool>, bool, <ForceExplicitAbi as StyleEditionDefault>::ConfigType, bool, bool),
        condense_wildcard_suffixes: (Cell<bool>, bool, <CondenseWildcardSuffixes as StyleEditionDefault>::ConfigType, bool, bool),
        color: (Cell<bool>, bool, <ColorConfig as StyleEditionDefault>::ConfigType, bool, bool),
        required_version: (Cell<bool>, bool, <RequiredVersion as StyleEditionDefault>::ConfigType, bool, bool),
        unstable_features: (Cell<bool>, bool, <UnstableFeatures as StyleEditionDefault>::ConfigType, bool, bool),
        disable_all_formatting: (Cell<bool>, bool, <DisableAllFormatting as StyleEditionDefault>::ConfigType, bool, bool),
        skip_children: (Cell<bool>, bool, <SkipChildren as StyleEditionDefault>::ConfigType, bool, bool),
        hide_parse_errors: (Cell<bool>, bool, <HideParseErrors as StyleEditionDefault>::ConfigType, bool, bool),
        show_parse_errors: (Cell<bool>, bool, <ShowParseErrors as StyleEditionDefault>::ConfigType, bool, bool),
        error_on_line_overflow: (Cell<bool>, bool, <ErrorOnLineOverflow as StyleEditionDefault>::ConfigType, bool, bool),
        error_on_unformatted: (Cell<bool>, bool, <ErrorOnUnformatted as StyleEditionDefault>::ConfigType, bool, bool),
        ignore: (Cell<bool>, bool, <Ignore as StyleEditionDefault>::ConfigType, bool, bool),
        verbose: (Cell<bool>, bool, <Verbose as StyleEditionDefault>::ConfigType, bool, bool),
        file_lines: (Cell<bool>, bool, <FileLinesConfig as StyleEditionDefault>::ConfigType, bool, bool),
        emit_mode: (Cell<bool>, bool, <EmitModeConfig as StyleEditionDefault>::ConfigType, bool, bool),
        make_backup: (Cell<bool>, bool, <MakeBackup as StyleEditionDefault>::ConfigType, bool, bool),
        print_misformatted_file_names: (Cell<bool>, bool, <PrintMisformattedFileNames as StyleEditionDefault>::ConfigType, bool, bool),
    }

## Fields§

§`max_width: (Cell<bool>, bool, <MaxWidth as StyleEditionDefault>::ConfigType, bool, bool)`§`hard_tabs: (Cell<bool>, bool, <HardTabs as StyleEditionDefault>::ConfigType, bool, bool)`§`tab_spaces: (Cell<bool>, bool, <TabSpaces as StyleEditionDefault>::ConfigType, bool, bool)`§`newline_style: (Cell<bool>, bool, <NewlineStyleConfig as StyleEditionDefault>::ConfigType, bool, bool)`§`indent_style: (Cell<bool>, bool, <IndentStyleConfig as StyleEditionDefault>::ConfigType, bool, bool)`§`use_small_heuristics: (Cell<bool>, bool, <UseSmallHeuristics as StyleEditionDefault>::ConfigType, bool, bool)`§`width_heuristics: (Cell<bool>, bool, <WidthHeuristicsConfig as StyleEditionDefault>::ConfigType, bool, bool)`§`fn_call_width: (Cell<bool>, bool, <FnCallWidth as StyleEditionDefault>::ConfigType, bool, bool)`§`attr_fn_like_width: (Cell<bool>, bool, <AttrFnLikeWidth as StyleEditionDefault>::ConfigType, bool, bool)`§`struct_lit_width: (Cell<bool>, bool, <StructLitWidth as StyleEditionDefault>::ConfigType, bool, bool)`§`struct_variant_width: (Cell<bool>, bool, <StructVariantWidth as StyleEditionDefault>::ConfigType, bool, bool)`§`array_width: (Cell<bool>, bool, <ArrayWidth as StyleEditionDefault>::ConfigType, bool, bool)`§`chain_width: (Cell<bool>, bool, <ChainWidth as StyleEditionDefault>::ConfigType, bool, bool)`§`single_line_if_else_max_width: (Cell<bool>, bool, <SingleLineIfElseMaxWidth as StyleEditionDefault>::ConfigType, bool, bool)`§`single_line_let_else_max_width: (Cell<bool>, bool, <SingleLineLetElseMaxWidth as StyleEditionDefault>::ConfigType, bool, bool)`§`wrap_comments: (Cell<bool>, bool, <WrapComments as StyleEditionDefault>::ConfigType, bool, bool)`§`format_code_in_doc_comments: (Cell<bool>, bool, <FormatCodeInDocComments as StyleEditionDefault>::ConfigType, bool, bool)`§`doc_comment_code_block_width: (Cell<bool>, bool, <DocCommentCodeBlockWidth as StyleEditionDefault>::ConfigType, bool, bool)`§`comment_width: (Cell<bool>, bool, <CommentWidth as StyleEditionDefault>::ConfigType, bool, bool)`§`normalize_comments: (Cell<bool>, bool, <NormalizeComments as StyleEditionDefault>::ConfigType, bool, bool)`§`normalize_doc_attributes: (Cell<bool>, bool, <NormalizeDocAttributes as StyleEditionDefault>::ConfigType, bool, bool)`§`format_strings: (Cell<bool>, bool, <FormatStrings as StyleEditionDefault>::ConfigType, bool, bool)`§`format_macro_matchers: (Cell<bool>, bool, <FormatMacroMatchers as StyleEditionDefault>::ConfigType, bool, bool)`§`format_macro_bodies: (Cell<bool>, bool, <FormatMacroBodies as StyleEditionDefault>::ConfigType, bool, bool)`§`skip_macro_invocations: (Cell<bool>, bool, <SkipMacroInvocations as StyleEditionDefault>::ConfigType, bool, bool)`§`hex_literal_case: (Cell<bool>, bool, <HexLiteralCaseConfig as StyleEditionDefault>::ConfigType, bool, bool)`§`empty_item_single_line: (Cell<bool>, bool, <EmptyItemSingleLine as StyleEditionDefault>::ConfigType, bool, bool)`§`struct_lit_single_line: (Cell<bool>, bool, <StructLitSingleLine as StyleEditionDefault>::ConfigType, bool, bool)`§`fn_single_line: (Cell<bool>, bool, <FnSingleLine as StyleEditionDefault>::ConfigType, bool, bool)`§`where_single_line: (Cell<bool>, bool, <WhereSingleLine as StyleEditionDefault>::ConfigType, bool, bool)`§`imports_indent: (Cell<bool>, bool, <ImportsIndent as StyleEditionDefault>::ConfigType, bool, bool)`§`imports_layout: (Cell<bool>, bool, <ImportsLayout as StyleEditionDefault>::ConfigType, bool, bool)`§`imports_granularity: (Cell<bool>, bool, <ImportsGranularityConfig as StyleEditionDefault>::ConfigType, bool, bool)`§`group_imports: (Cell<bool>, bool, <GroupImportsTacticConfig as StyleEditionDefault>::ConfigType, bool, bool)`§`merge_imports: (Cell<bool>, bool, <MergeImports as StyleEditionDefault>::ConfigType, bool, bool)`§`reorder_imports: (Cell<bool>, bool, <ReorderImports as StyleEditionDefault>::ConfigType, bool, bool)`§`reorder_modules: (Cell<bool>, bool, <ReorderModules as StyleEditionDefault>::ConfigType, bool, bool)`§`reorder_impl_items: (Cell<bool>, bool, <ReorderImplItems as StyleEditionDefault>::ConfigType, bool, bool)`§`type_punctuation_density: (Cell<bool>, bool, <TypePunctuationDensity as StyleEditionDefault>::ConfigType, bool, bool)`§`space_before_colon: (Cell<bool>, bool, <SpaceBeforeColon as StyleEditionDefault>::ConfigType, bool, bool)`§`space_after_colon: (Cell<bool>, bool, <SpaceAfterColon as StyleEditionDefault>::ConfigType, bool, bool)`§`spaces_around_ranges: (Cell<bool>, bool, <SpacesAroundRanges as StyleEditionDefault>::ConfigType, bool, bool)`§`binop_separator: (Cell<bool>, bool, <BinopSeparator as StyleEditionDefault>::ConfigType, bool, bool)`§`remove_nested_parens: (Cell<bool>, bool, <RemoveNestedParens as StyleEditionDefault>::ConfigType, bool, bool)`§`combine_control_expr: (Cell<bool>, bool, <CombineControlExpr as StyleEditionDefault>::ConfigType, bool, bool)`§`short_array_element_width_threshold: (Cell<bool>, bool, <ShortArrayElementWidthThreshold as StyleEditionDefault>::ConfigType, bool, bool)`§`overflow_delimited_expr: (Cell<bool>, bool, <OverflowDelimitedExpr as StyleEditionDefault>::ConfigType, bool, bool)`§`struct_field_align_threshold: (Cell<bool>, bool, <StructFieldAlignThreshold as StyleEditionDefault>::ConfigType, bool, bool)`§`enum_discrim_align_threshold: (Cell<bool>, bool, <EnumDiscrimAlignThreshold as StyleEditionDefault>::ConfigType, bool, bool)`§`match_arm_blocks: (Cell<bool>, bool, <MatchArmBlocks as StyleEditionDefault>::ConfigType, bool, bool)`§`match_arm_leading_pipes: (Cell<bool>, bool, <MatchArmLeadingPipeConfig as StyleEditionDefault>::ConfigType, bool, bool)`§`force_multiline_blocks: (Cell<bool>, bool, <ForceMultilineBlocks as StyleEditionDefault>::ConfigType, bool, bool)`§`fn_args_layout: (Cell<bool>, bool, <FnArgsLayout as StyleEditionDefault>::ConfigType, bool, bool)`§`fn_params_layout: (Cell<bool>, bool, <FnParamsLayout as StyleEditionDefault>::ConfigType, bool, bool)`§`brace_style: (Cell<bool>, bool, <BraceStyleConfig as StyleEditionDefault>::ConfigType, bool, bool)`§`control_brace_style: (Cell<bool>, bool, <ControlBraceStyleConfig as StyleEditionDefault>::ConfigType, bool, bool)`§`trailing_semicolon: (Cell<bool>, bool, <TrailingSemicolon as StyleEditionDefault>::ConfigType, bool, bool)`§`trailing_comma: (Cell<bool>, bool, <TrailingComma as StyleEditionDefault>::ConfigType, bool, bool)`§`match_block_trailing_comma: (Cell<bool>, bool, <MatchBlockTrailingComma as StyleEditionDefault>::ConfigType, bool, bool)`§`blank_lines_upper_bound: (Cell<bool>, bool, <BlankLinesUpperBound as StyleEditionDefault>::ConfigType, bool, bool)`§`blank_lines_lower_bound: (Cell<bool>, bool, <BlankLinesLowerBound as StyleEditionDefault>::ConfigType, bool, bool)`§`edition: (Cell<bool>, bool, <EditionConfig as StyleEditionDefault>::ConfigType, bool, bool)`§`style_edition: (Cell<bool>, bool, <StyleEditionConfig as StyleEditionDefault>::ConfigType, bool, bool)`§`version: (Cell<bool>, bool, <VersionConfig as StyleEditionDefault>::ConfigType, bool, bool)`§`inline_attribute_width: (Cell<bool>, bool, <InlineAttributeWidth as StyleEditionDefault>::ConfigType, bool, bool)`§`format_generated_files: (Cell<bool>, bool, <FormatGeneratedFiles as StyleEditionDefault>::ConfigType, bool, bool)`§`generated_marker_line_search_limit: (Cell<bool>, bool, <GeneratedMarkerLineSearchLimit as StyleEditionDefault>::ConfigType, bool, bool)`§`merge_derives: (Cell<bool>, bool, <MergeDerives as StyleEditionDefault>::ConfigType, bool, bool)`§`use_try_shorthand: (Cell<bool>, bool, <UseTryShorthand as StyleEditionDefault>::ConfigType, bool, bool)`§`use_field_init_shorthand: (Cell<bool>, bool, <UseFieldInitShorthand as StyleEditionDefault>::ConfigType, bool, bool)`§`force_explicit_abi: (Cell<bool>, bool, <ForceExplicitAbi as StyleEditionDefault>::ConfigType, bool, bool)`§`condense_wildcard_suffixes: (Cell<bool>, bool, <CondenseWildcardSuffixes as StyleEditionDefault>::ConfigType, bool, bool)`§`color: (Cell<bool>, bool, <ColorConfig as StyleEditionDefault>::ConfigType, bool, bool)`§`required_version: (Cell<bool>, bool, <RequiredVersion as StyleEditionDefault>::ConfigType, bool, bool)`§`unstable_features: (Cell<bool>, bool, <UnstableFeatures as StyleEditionDefault>::ConfigType, bool, bool)`§`disable_all_formatting: (Cell<bool>, bool, <DisableAllFormatting as StyleEditionDefault>::ConfigType, bool, bool)`§`skip_children: (Cell<bool>, bool, <SkipChildren as StyleEditionDefault>::ConfigType, bool, bool)`§`hide_parse_errors: (Cell<bool>, bool, <HideParseErrors as StyleEditionDefault>::ConfigType, bool, bool)`§`show_parse_errors: (Cell<bool>, bool, <ShowParseErrors as StyleEditionDefault>::ConfigType, bool, bool)`§`error_on_line_overflow: (Cell<bool>, bool, <ErrorOnLineOverflow as StyleEditionDefault>::ConfigType, bool, bool)`§`error_on_unformatted: (Cell<bool>, bool, <ErrorOnUnformatted as StyleEditionDefault>::ConfigType, bool, bool)`§`ignore: (Cell<bool>, bool, <Ignore as StyleEditionDefault>::ConfigType, bool, bool)`§`verbose: (Cell<bool>, bool, <Verbose as StyleEditionDefault>::ConfigType, bool, bool)`§`file_lines: (Cell<bool>, bool, <FileLinesConfig as StyleEditionDefault>::ConfigType, bool, bool)`§`emit_mode: (Cell<bool>, bool, <EmitModeConfig as StyleEditionDefault>::ConfigType, bool, bool)`§`make_backup: (Cell<bool>, bool, <MakeBackup as StyleEditionDefault>::ConfigType, bool, bool)`§`print_misformatted_file_names: (Cell<bool>, bool, <PrintMisformattedFileNames as StyleEditionDefault>::ConfigType, bool, bool)`

## Implementations§

Source§

### impl Config

Source

#### pub fn max_width(&self) -> <MaxWidth as StyleEditionDefault>::ConfigType

Source

#### pub fn hard_tabs(&self) -> <HardTabs as StyleEditionDefault>::ConfigType

Source

#### pub fn tab_spaces(&self) -> <TabSpaces as StyleEditionDefault>::ConfigType

Source

#### pub fn newline_style( &self, ) -> <NewlineStyleConfig as StyleEditionDefault>::ConfigType

Source

#### pub fn indent_style( &self, ) -> <IndentStyleConfig as StyleEditionDefault>::ConfigType

Source

#### pub fn use_small_heuristics( &self, ) -> <UseSmallHeuristics as StyleEditionDefault>::ConfigType

Source

#### pub fn width_heuristics( &self, ) -> <WidthHeuristicsConfig as StyleEditionDefault>::ConfigType

Source

#### pub fn fn_call_width(&self) -> <FnCallWidth as StyleEditionDefault>::ConfigType

Source

#### pub fn attr_fn_like_width( &self, ) -> <AttrFnLikeWidth as StyleEditionDefault>::ConfigType

Source

#### pub fn struct_lit_width( &self, ) -> <StructLitWidth as StyleEditionDefault>::ConfigType

Source

#### pub fn struct_variant_width( &self, ) -> <StructVariantWidth as StyleEditionDefault>::ConfigType

Source

#### pub fn array_width(&self) -> <ArrayWidth as StyleEditionDefault>::ConfigType

Source

#### pub fn chain_width(&self) -> <ChainWidth as StyleEditionDefault>::ConfigType

Source

#### pub fn single_line_if_else_max_width( &self, ) -> <SingleLineIfElseMaxWidth as StyleEditionDefault>::ConfigType

Source

#### pub fn single_line_let_else_max_width( &self, ) -> <SingleLineLetElseMaxWidth as StyleEditionDefault>::ConfigType

Source

#### pub fn wrap_comments(&self) -> <WrapComments as StyleEditionDefault>::ConfigType

Source

#### pub fn format_code_in_doc_comments( &self, ) -> <FormatCodeInDocComments as StyleEditionDefault>::ConfigType

Source

#### pub fn doc_comment_code_block_width( &self, ) -> <DocCommentCodeBlockWidth as StyleEditionDefault>::ConfigType

Source

#### pub fn comment_width(&self) -> <CommentWidth as StyleEditionDefault>::ConfigType

Source

#### pub fn normalize_comments( &self, ) -> <NormalizeComments as StyleEditionDefault>::ConfigType

Source

#### pub fn normalize_doc_attributes( &self, ) -> <NormalizeDocAttributes as StyleEditionDefault>::ConfigType

Source

#### pub fn format_strings( &self, ) -> <FormatStrings as StyleEditionDefault>::ConfigType

Source

#### pub fn format_macro_matchers( &self, ) -> <FormatMacroMatchers as StyleEditionDefault>::ConfigType

Source

#### pub fn format_macro_bodies( &self, ) -> <FormatMacroBodies as StyleEditionDefault>::ConfigType

Source

#### pub fn skip_macro_invocations( &self, ) -> <SkipMacroInvocations as StyleEditionDefault>::ConfigType

Source

#### pub fn hex_literal_case( &self, ) -> <HexLiteralCaseConfig as StyleEditionDefault>::ConfigType

Source

#### pub fn empty_item_single_line( &self, ) -> <EmptyItemSingleLine as StyleEditionDefault>::ConfigType

Source

#### pub fn struct_lit_single_line( &self, ) -> <StructLitSingleLine as StyleEditionDefault>::ConfigType

Source

#### pub fn fn_single_line( &self, ) -> <FnSingleLine as StyleEditionDefault>::ConfigType

Source

#### pub fn where_single_line( &self, ) -> <WhereSingleLine as StyleEditionDefault>::ConfigType

Source

#### pub fn imports_indent( &self, ) -> <ImportsIndent as StyleEditionDefault>::ConfigType

Source

#### pub fn imports_layout( &self, ) -> <ImportsLayout as StyleEditionDefault>::ConfigType

Source

#### pub fn imports_granularity( &self, ) -> <ImportsGranularityConfig as StyleEditionDefault>::ConfigType

Source

#### pub fn group_imports( &self, ) -> <GroupImportsTacticConfig as StyleEditionDefault>::ConfigType

Source

#### pub fn merge_imports(&self) -> <MergeImports as StyleEditionDefault>::ConfigType

Source

#### pub fn reorder_imports( &self, ) -> <ReorderImports as StyleEditionDefault>::ConfigType

Source

#### pub fn reorder_modules( &self, ) -> <ReorderModules as StyleEditionDefault>::ConfigType

Source

#### pub fn reorder_impl_items( &self, ) -> <ReorderImplItems as StyleEditionDefault>::ConfigType

Source

#### pub fn type_punctuation_density( &self, ) -> <TypePunctuationDensity as StyleEditionDefault>::ConfigType

Source

#### pub fn space_before_colon( &self, ) -> <SpaceBeforeColon as StyleEditionDefault>::ConfigType

Source

#### pub fn space_after_colon( &self, ) -> <SpaceAfterColon as StyleEditionDefault>::ConfigType

Source

#### pub fn spaces_around_ranges( &self, ) -> <SpacesAroundRanges as StyleEditionDefault>::ConfigType

Source

#### pub fn binop_separator( &self, ) -> <BinopSeparator as StyleEditionDefault>::ConfigType

Source

#### pub fn remove_nested_parens( &self, ) -> <RemoveNestedParens as StyleEditionDefault>::ConfigType

Source

#### pub fn combine_control_expr( &self, ) -> <CombineControlExpr as StyleEditionDefault>::ConfigType

Source

#### pub fn short_array_element_width_threshold( &self, ) -> <ShortArrayElementWidthThreshold as StyleEditionDefault>::ConfigType

Source

#### pub fn overflow_delimited_expr( &self, ) -> <OverflowDelimitedExpr as StyleEditionDefault>::ConfigType

Source

#### pub fn struct_field_align_threshold( &self, ) -> <StructFieldAlignThreshold as StyleEditionDefault>::ConfigType

Source

#### pub fn enum_discrim_align_threshold( &self, ) -> <EnumDiscrimAlignThreshold as StyleEditionDefault>::ConfigType

Source

#### pub fn match_arm_blocks( &self, ) -> <MatchArmBlocks as StyleEditionDefault>::ConfigType

Source

#### pub fn match_arm_leading_pipes( &self, ) -> <MatchArmLeadingPipeConfig as StyleEditionDefault>::ConfigType

Source

#### pub fn force_multiline_blocks( &self, ) -> <ForceMultilineBlocks as StyleEditionDefault>::ConfigType

Source

#### pub fn fn_args_layout( &self, ) -> <FnArgsLayout as StyleEditionDefault>::ConfigType

Source

#### pub fn fn_params_layout( &self, ) -> <FnParamsLayout as StyleEditionDefault>::ConfigType

Source

#### pub fn brace_style( &self, ) -> <BraceStyleConfig as StyleEditionDefault>::ConfigType

Source

#### pub fn control_brace_style( &self, ) -> <ControlBraceStyleConfig as StyleEditionDefault>::ConfigType

Source

#### pub fn trailing_semicolon( &self, ) -> <TrailingSemicolon as StyleEditionDefault>::ConfigType

Source

#### pub fn trailing_comma( &self, ) -> <TrailingComma as StyleEditionDefault>::ConfigType

Source

#### pub fn match_block_trailing_comma( &self, ) -> <MatchBlockTrailingComma as StyleEditionDefault>::ConfigType

Source

#### pub fn blank_lines_upper_bound( &self, ) -> <BlankLinesUpperBound as StyleEditionDefault>::ConfigType

Source

#### pub fn blank_lines_lower_bound( &self, ) -> <BlankLinesLowerBound as StyleEditionDefault>::ConfigType

Source

#### pub fn edition(&self) -> <EditionConfig as StyleEditionDefault>::ConfigType

Source

#### pub fn style_edition( &self, ) -> <StyleEditionConfig as StyleEditionDefault>::ConfigType

Source

#### pub fn version(&self) -> <VersionConfig as StyleEditionDefault>::ConfigType

Source

#### pub fn inline_attribute_width( &self, ) -> <InlineAttributeWidth as StyleEditionDefault>::ConfigType

Source

#### pub fn format_generated_files( &self, ) -> <FormatGeneratedFiles as StyleEditionDefault>::ConfigType

Source

#### pub fn generated_marker_line_search_limit( &self, ) -> <GeneratedMarkerLineSearchLimit as StyleEditionDefault>::ConfigType

Source

#### pub fn merge_derives(&self) -> <MergeDerives as StyleEditionDefault>::ConfigType

Source

#### pub fn use_try_shorthand( &self, ) -> <UseTryShorthand as StyleEditionDefault>::ConfigType

Source

#### pub fn use_field_init_shorthand( &self, ) -> <UseFieldInitShorthand as StyleEditionDefault>::ConfigType

Source

#### pub fn force_explicit_abi( &self, ) -> <ForceExplicitAbi as StyleEditionDefault>::ConfigType

Source

#### pub fn condense_wildcard_suffixes( &self, ) -> <CondenseWildcardSuffixes as StyleEditionDefault>::ConfigType

Source

#### pub fn color(&self) -> <ColorConfig as StyleEditionDefault>::ConfigType

Source

#### pub fn required_version( &self, ) -> <RequiredVersion as StyleEditionDefault>::ConfigType

Source

#### pub fn unstable_features( &self, ) -> <UnstableFeatures as StyleEditionDefault>::ConfigType

Source

#### pub fn disable_all_formatting( &self, ) -> <DisableAllFormatting as StyleEditionDefault>::ConfigType

Source

#### pub fn skip_children(&self) -> <SkipChildren as StyleEditionDefault>::ConfigType

Source

#### pub fn hide_parse_errors( &self, ) -> <HideParseErrors as StyleEditionDefault>::ConfigType

Source

#### pub fn show_parse_errors( &self, ) -> <ShowParseErrors as StyleEditionDefault>::ConfigType

Source

#### pub fn error_on_line_overflow( &self, ) -> <ErrorOnLineOverflow as StyleEditionDefault>::ConfigType

Source

#### pub fn error_on_unformatted( &self, ) -> <ErrorOnUnformatted as StyleEditionDefault>::ConfigType

Source

#### pub fn ignore(&self) -> <Ignore as StyleEditionDefault>::ConfigType

Source

#### pub fn verbose(&self) -> <Verbose as StyleEditionDefault>::ConfigType

Source

#### pub fn file_lines(&self) -> <FileLinesConfig as StyleEditionDefault>::ConfigType

Source

#### pub fn emit_mode(&self) -> <EmitModeConfig as StyleEditionDefault>::ConfigType

Source

#### pub fn make_backup(&self) -> <MakeBackup as StyleEditionDefault>::ConfigType

Source

#### pub fn print_misformatted_file_names( &self, ) -> <PrintMisformattedFileNames as StyleEditionDefault>::ConfigType

Source

#### pub(crate) fn default_with_style_edition(style_edition: StyleEdition) -> Config

Source

#### pub fn set(&mut self) -> ConfigSetter<'_>

Source

#### pub fn set_cli(&mut self) -> CliConfigSetter<'_>

Source

#### pub fn was_set(&self) -> ConfigWasSet<'_>

Source

#### pub fn was_set_cli(&self) -> CliConfigWasSet<'_>

Source

#### fn fill_from_parsed_config(self, parsed: PartialConfig, dir: &Path) -> Config

Source

#### pub(crate) fn is_valid_name(name: &str) -> bool

Source

#### pub fn is_valid_key_val(key: &str, val: &str) -> bool

Source

#### pub fn used_options(&self) -> PartialConfig

Source

#### pub fn all_options(&self) -> PartialConfig

Source

#### pub fn override_value(&mut self, key: &str, val: &str)

Source

#### pub fn is_hidden_option(name: &str) -> bool

Source

#### pub fn print_docs(out: &mut dyn Write, include_unstable: bool)

Source

#### fn set_width_heuristics(&mut self, heuristics: WidthHeuristics)

Source

#### fn set_heuristics(&mut self)

Source

#### fn set_ignore(&mut self, dir: &Path)

Source

#### fn set_merge_imports(&mut self)

Source

#### fn set_fn_args_layout(&mut self)

Source

#### fn set_hide_parse_errors(&mut self)

Source

#### fn set_version(&mut self)

Source

#### pub fn is_default(&self, key: &str) -> bool

Returns `true` if the config key was explicitly set and is the default value.

Source§

### impl Config

Source

#### pub fn default_for_possible_style_edition( style_edition: Option<StyleEdition>, edition: Option<Edition>, version: Option<Version>, ) -> Config

Source

#### pub(crate) fn version_meets_requirement(&self) -> bool

Source

#### pub(crate) fn from_toml_path( file_path: &Path, edition: Option<Edition>, style_edition: Option<StyleEdition>, version: Option<Version>, ) -> Result<Config, Error>

Constructs a `Config` from the toml file specified at `file_path`.

This method only looks at the provided path, for a method that searches parents for a `rustfmt.toml` see `from_resolved_toml_path`.

Returns a `Config` if the config could be read and parsed from the file, otherwise errors.

Source

#### pub(crate) fn from_resolved_toml_path( dir: &Path, edition: Option<Edition>, style_edition: Option<StyleEdition>, version: Option<Version>, ) -> Result<(Config, Option<PathBuf>), Error>

Resolves the config for input in `dir`.

Searches for `rustfmt.toml` beginning with `dir`, and recursively checking parents of `dir` if no config file is found. If no config file exists in `dir` or in any parent, a default `Config` will be returned (and the returned path will be empty).

Returns the `Config` to use, and the path of the project file if there was one.

Source

#### pub(crate) fn from_toml(toml: &str, file_path: &Path) -> Result<Config, String>

Source

#### pub(crate) fn from_toml_for_style_edition( toml: &str, file_path: &Path, edition: Option<Edition>, style_edition: Option<StyleEdition>, version: Option<Version>, ) -> Result<Config, String>

## Trait Implementations§

Source§

### impl Clone for Config

Source§

#### fn clone(&self) -> Config

Returns a duplicate of the value. Read more
1.0.0§

#### fn clone_from(&mut self, source: &Self)

Performs copy-assignment from `source`. Read more
Source§

### impl Default for Config

Source§

#### fn default() -> Config

Returns the “default value” for a type. Read more

## Auto Trait Implementations§

§

### impl !Freeze for Config

§

### impl !RefUnwindSafe for Config

§

### impl Send for Config

§

### impl !Sync for Config

§

### impl Unpin for Config

§

### impl UnwindSafe for Config

## Blanket Implementations§

§

### impl<T> Any for T
where T: 'static + ?Sized,

§

#### fn type_id(&self) -> TypeId

Gets the `TypeId` of `self`. Read more
§

### impl<T> Borrow<T> for T
where T: ?Sized,

§

#### fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

### impl<T> BorrowMut<T> for T
where T: ?Sized,

§

#### fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

### impl<T> CloneToUninit for T
where T: Clone,

§

#### unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (`clone_to_uninit`)
Performs copy-assignment from `self` to `dest`. Read more
§

### impl<T> From<T> for T

§

#### fn from(t: T) -> T

Returns the argument unchanged.

§

### impl<T> Instrument for T

§

#### fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [`Span`], returning an `Instrumented` wrapper. Read more
§

#### fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current `Span`, returning an `Instrumented` wrapper. Read more
§

### impl<T, U> Into<U> for T
where U: From<T>,

§

#### fn into(self) -> U

Calls `U::from(self)`.

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

§

### impl<T> IntoEither for T

§

#### fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts `self` into a `Left` variant of `Either<Self, Self>` if `into_left` is `true`. Converts `self` into a `Right` variant of `Either<Self, Self>` otherwise. Read more
§

#### fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts `self` into a `Left` variant of `Either<Self, Self>` if `into_left(&self)` returns `true`. Converts `self` into a `Right` variant of `Either<Self, Self>` otherwise. Read more
§

### impl<T> Pointable for T

§

#### const ALIGN: usize

The alignment of pointer.
§

#### type Init = T

The type for initializers.
§

#### unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

#### unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

#### unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

#### unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

### impl<T> ToOwned for T
where T: Clone,

§

#### type Owned = T

The resulting type after obtaining ownership.
§

#### fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

#### fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

### impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

#### type Error = Infallible

The type returned in the event of a conversion error.
§

#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

### impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

#### type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

### impl<T> WithSubscriber for T

§

#### fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided `Subscriber` to this type, returning a [`WithDispatch`] wrapper. Read more
§

#### fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default `Subscriber` to this type, returning a [`WithDispatch`] wrapper. Read more

## 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: 912 bytes