Struct rustfmt_nightly::config::PartialConfig

source ·
pub struct PartialConfig {
Show 86 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 generated_marker_line_search_limit: Option<usize>, 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 show_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>§generated_marker_line_search_limit: Option<usize>§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>§show_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§

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§

Blanket Implementations§

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> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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, 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<T> IntoEither for T

source§

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

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

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

source§

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<T, U> TryFrom<U> for T
where U: Into<T>,

source§

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>,

source§

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.
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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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: 632 bytes