rustfmt_nightly::config::style_edition

Trait StyleEditionDefault

Source
pub trait StyleEditionDefault {
    type ConfigType;

    // Required method
    fn style_edition_default(style_edition: StyleEdition) -> Self::ConfigType;
}
Expand description

Defines the default value for the given style edition

Required Associated Types§

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl StyleEditionDefault for ArrayWidth

Source§

impl StyleEditionDefault for AttrFnLikeWidth

Source§

impl StyleEditionDefault for BinopSeparator

Source§

impl StyleEditionDefault for BlankLinesLowerBound

Source§

impl StyleEditionDefault for BlankLinesUpperBound

Source§

impl StyleEditionDefault for BraceStyleConfig

Source§

impl StyleEditionDefault for ChainWidth

Source§

impl StyleEditionDefault for ColorConfig

Source§

impl StyleEditionDefault for CombineControlExpr

Source§

impl StyleEditionDefault for CommentWidth

Source§

impl StyleEditionDefault for CondenseWildcardSuffixes

Source§

impl StyleEditionDefault for ControlBraceStyleConfig

Source§

impl StyleEditionDefault for DisableAllFormatting

Source§

impl StyleEditionDefault for DocCommentCodeBlockWidth

Source§

impl StyleEditionDefault for EditionConfig

Source§

impl StyleEditionDefault for EmitModeConfig

Source§

impl StyleEditionDefault for EmptyItemSingleLine

Source§

impl StyleEditionDefault for EnumDiscrimAlignThreshold

Source§

impl StyleEditionDefault for ErrorOnLineOverflow

Source§

impl StyleEditionDefault for ErrorOnUnformatted

Source§

impl StyleEditionDefault for FileLinesConfig

Source§

impl StyleEditionDefault for FnArgsLayout

Source§

impl StyleEditionDefault for FnCallWidth

Source§

impl StyleEditionDefault for FnParamsLayout

Source§

impl StyleEditionDefault for FnSingleLine

Source§

impl StyleEditionDefault for ForceExplicitAbi

Source§

impl StyleEditionDefault for ForceMultilineBlocks

Source§

impl StyleEditionDefault for FormatCodeInDocComments

Source§

impl StyleEditionDefault for FormatGeneratedFiles

Source§

impl StyleEditionDefault for FormatMacroBodies

Source§

impl StyleEditionDefault for FormatMacroMatchers

Source§

impl StyleEditionDefault for FormatStrings

Source§

impl StyleEditionDefault for GeneratedMarkerLineSearchLimit

Source§

impl StyleEditionDefault for GroupImportsTacticConfig

Source§

impl StyleEditionDefault for HardTabs

Source§

impl StyleEditionDefault for HexLiteralCaseConfig

Source§

impl StyleEditionDefault for HideParseErrors

Source§

impl StyleEditionDefault for Ignore

Source§

impl StyleEditionDefault for ImportsGranularityConfig

Source§

impl StyleEditionDefault for ImportsIndent

Source§

impl StyleEditionDefault for ImportsLayout

Source§

impl StyleEditionDefault for IndentStyleConfig

Source§

impl StyleEditionDefault for InlineAttributeWidth

Source§

impl StyleEditionDefault for MakeBackup

Source§

impl StyleEditionDefault for MatchArmBlocks

Source§

impl StyleEditionDefault for MatchArmLeadingPipeConfig

Source§

impl StyleEditionDefault for MatchBlockTrailingComma

Source§

impl StyleEditionDefault for MaxWidth

Source§

impl StyleEditionDefault for MergeDerives

Source§

impl StyleEditionDefault for MergeImports

Source§

impl StyleEditionDefault for NewlineStyleConfig

Source§

impl StyleEditionDefault for NormalizeComments

Source§

impl StyleEditionDefault for NormalizeDocAttributes

Source§

impl StyleEditionDefault for OverflowDelimitedExpr

Source§

impl StyleEditionDefault for PrintMisformattedFileNames

Source§

impl StyleEditionDefault for RemoveNestedParens

Source§

impl StyleEditionDefault for ReorderImplItems

Source§

impl StyleEditionDefault for ReorderImports

Source§

impl StyleEditionDefault for ReorderModules

Source§

impl StyleEditionDefault for RequiredVersion

Source§

impl StyleEditionDefault for ShortArrayElementWidthThreshold

Source§

impl StyleEditionDefault for ShowParseErrors

Source§

impl StyleEditionDefault for SingleLineIfElseMaxWidth

Source§

impl StyleEditionDefault for SingleLineLetElseMaxWidth

Source§

impl StyleEditionDefault for SkipChildren

Source§

impl StyleEditionDefault for SkipMacroInvocations

Source§

impl StyleEditionDefault for SpaceAfterColon

Source§

impl StyleEditionDefault for SpaceBeforeColon

Source§

impl StyleEditionDefault for SpacesAroundRanges

Source§

impl StyleEditionDefault for StructFieldAlignThreshold

Source§

impl StyleEditionDefault for StructLitSingleLine

Source§

impl StyleEditionDefault for StructLitWidth

Source§

impl StyleEditionDefault for StructVariantWidth

Source§

impl StyleEditionDefault for StyleEditionConfig

Source§

impl StyleEditionDefault for TabSpaces

Source§

impl StyleEditionDefault for TrailingComma

Source§

impl StyleEditionDefault for TrailingSemicolon

Source§

impl StyleEditionDefault for TypePunctuationDensity

Source§

impl StyleEditionDefault for UnstableFeatures

Source§

impl StyleEditionDefault for UseFieldInitShorthand

Source§

impl StyleEditionDefault for UseSmallHeuristics

Source§

impl StyleEditionDefault for UseTryShorthand

Source§

impl StyleEditionDefault for Verbose

Source§

impl StyleEditionDefault for VersionConfig

Source§

impl StyleEditionDefault for WhereSingleLine

Source§

impl StyleEditionDefault for WidthHeuristicsConfig

Source§

impl StyleEditionDefault for WrapComments