# Struct rustfmt_nightly::config::PartialConfig

source ·

    pub struct PartialConfig {Show 84 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 single_line_let_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 skip_macro_invocations: Option<MacroSelectors>,
        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 fn_params_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>`§`single_line_let_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>`§`skip_macro_invocations: Option<MacroSelectors>`§`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>`§`fn_params_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

source

#### pub fn to_toml(&self) -> Result<String, ToTomlError>

## Trait Implementations§

source§

### impl Clone for PartialConfig

source§

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

Returns a copy of the value. Read more
1.0.0 · source§

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

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

### impl<'de> Deserialize<'de> for PartialConfig

source§

#### fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

### impl Serialize for PartialConfig

source§

#### fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

## Auto Trait Implementations§

§

### impl DynSend for PartialConfig

§

### impl DynSync for PartialConfig

§

### impl Freeze for PartialConfig

§

### impl RefUnwindSafe for PartialConfig

§

### impl Send for PartialConfig

§

### impl Sync for PartialConfig

§

### impl Unpin for PartialConfig

§

### impl UnwindSafe for PartialConfig

## Blanket Implementations§

source§

### impl<T> Aligned for T

source§

#### const ALIGN: Alignment = _

Alignment of `Self`.
source§

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

source§

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

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

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

source§

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

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

### impl<T, R> CollectAndApply<T, R> for T

source§

#### fn collect_and_apply<I, F>(iter: I, f: F) -> R
where I: Iterator<Item = T>, F: FnOnce(&[T]) -> R,

Equivalent to `f(&iter.collect::<Vec<_>>())`.

§

#### type Output = R

§

### impl<T> Filterable for T

§

#### fn filterable( self, filter_name: &'static str ) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>

Creates a filterable data provider with the given name for debugging. Read more
source§

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

source§

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

Returns the argument unchanged.

source§

### impl<T> Instrument for T

source§

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

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

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

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

### impl<T> Instrument for T

source§

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

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

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

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

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

source§

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

Calls `U::from(self)`.

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

source§

### impl<P> IntoQueryParam<P> for P

source§

#### fn into_query_param(self) -> P

source§

### impl<T> MaybeResult<T> for T

§

#### type Error = !

source§

#### fn from(_: Result<T, <T as MaybeResult<T>>::Error>) -> T

source§

#### fn to_result(self) -> Result<T, <T as MaybeResult<T>>::Error>

§

### 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
source§

### impl<T> Same for T

§

#### type Output = T

Should always be `Self`
source§

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

§

#### type Owned = T

The resulting type after obtaining ownership.
source§

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

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

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

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

### impl<'tcx, T> ToPredicate<'tcx, T> for T

source§

#### fn to_predicate(self, _tcx: TyCtxt<'tcx>) -> T

source§

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

§

#### type Error = Infallible

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

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

Performs the conversion.
source§

### 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.
source§

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

Performs the conversion.
§

### impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

#### fn vzip(self) -> V

source§

### impl<Tcx, T> Value<Tcx> for T
where Tcx: DepContext,

source§

#### default fn from_cycle_error( tcx: Tcx, cycle_error: &CycleError, _guar: ErrorGuaranteed ) -> T

source§

### impl<T> WithSubscriber for T

source§

#### 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
source§

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

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

### impl<T> WithSubscriber for T

source§

#### 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
source§

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

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

### impl<'a, T> Captures<'a> for T
where T: ?Sized,

source§

### impl<'a, T> Captures<'a> for T
where T: ?Sized,

source§

### impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

§

### impl<T> ErasedDestructor for T
where T: 'static,

§

### impl<T> MaybeSendSync for T
where T: Send + Sync,

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