Struct rustfmt_nightly::Config [−][src]
Fields
license_template: Option<Regex>
Methods
impl Config
[src]
impl Config
pub fn max_width(&self) -> usize
[src]
pub fn max_width(&self) -> usize
pub fn hard_tabs(&self) -> bool
[src]
pub fn hard_tabs(&self) -> bool
pub fn tab_spaces(&self) -> usize
[src]
pub fn tab_spaces(&self) -> usize
pub fn newline_style(&self) -> NewlineStyle
[src]
pub fn newline_style(&self) -> NewlineStyle
pub fn use_small_heuristics(&self) -> Heuristics
[src]
pub fn use_small_heuristics(&self) -> Heuristics
pub fn indent_style(&self) -> IndentStyle
[src]
pub fn indent_style(&self) -> IndentStyle
pub fn wrap_comments(&self) -> bool
[src]
pub fn wrap_comments(&self) -> bool
pub fn comment_width(&self) -> usize
[src]
pub fn comment_width(&self) -> usize
pub fn normalize_comments(&self) -> bool
[src]
pub fn normalize_comments(&self) -> bool
pub fn license_template_path(&self) -> String
[src]
pub fn license_template_path(&self) -> String
pub fn format_strings(&self) -> bool
[src]
pub fn format_strings(&self) -> bool
pub fn format_macro_matchers(&self) -> bool
[src]
pub fn format_macro_matchers(&self) -> bool
pub fn format_macro_bodies(&self) -> bool
[src]
pub fn format_macro_bodies(&self) -> bool
pub fn empty_item_single_line(&self) -> bool
[src]
pub fn empty_item_single_line(&self) -> bool
pub fn struct_lit_single_line(&self) -> bool
[src]
pub fn struct_lit_single_line(&self) -> bool
pub fn fn_single_line(&self) -> bool
[src]
pub fn fn_single_line(&self) -> bool
pub fn where_single_line(&self) -> bool
[src]
pub fn where_single_line(&self) -> bool
pub fn imports_indent(&self) -> IndentStyle
[src]
pub fn imports_indent(&self) -> IndentStyle
pub fn imports_layout(&self) -> ListTactic
[src]
pub fn imports_layout(&self) -> ListTactic
pub fn merge_imports(&self) -> bool
[src]
pub fn merge_imports(&self) -> bool
pub fn reorder_imports(&self) -> bool
[src]
pub fn reorder_imports(&self) -> bool
pub fn reorder_modules(&self) -> bool
[src]
pub fn reorder_modules(&self) -> bool
pub fn reorder_impl_items(&self) -> bool
[src]
pub fn reorder_impl_items(&self) -> bool
pub fn type_punctuation_density(&self) -> TypeDensity
[src]
pub fn type_punctuation_density(&self) -> TypeDensity
pub fn space_before_colon(&self) -> bool
[src]
pub fn space_before_colon(&self) -> bool
pub fn space_after_colon(&self) -> bool
[src]
pub fn space_after_colon(&self) -> bool
pub fn spaces_around_ranges(&self) -> bool
[src]
pub fn spaces_around_ranges(&self) -> bool
pub fn binop_separator(&self) -> SeparatorPlace
[src]
pub fn binop_separator(&self) -> SeparatorPlace
pub fn remove_nested_parens(&self) -> bool
[src]
pub fn remove_nested_parens(&self) -> bool
pub fn combine_control_expr(&self) -> bool
[src]
pub fn combine_control_expr(&self) -> bool
pub fn struct_field_align_threshold(&self) -> usize
[src]
pub fn struct_field_align_threshold(&self) -> usize
pub fn match_arm_blocks(&self) -> bool
[src]
pub fn match_arm_blocks(&self) -> bool
pub fn force_multiline_blocks(&self) -> bool
[src]
pub fn force_multiline_blocks(&self) -> bool
pub fn fn_args_density(&self) -> Density
[src]
pub fn fn_args_density(&self) -> Density
pub fn brace_style(&self) -> BraceStyle
[src]
pub fn brace_style(&self) -> BraceStyle
pub fn control_brace_style(&self) -> ControlBraceStyle
[src]
pub fn control_brace_style(&self) -> ControlBraceStyle
pub fn trailing_semicolon(&self) -> bool
[src]
pub fn trailing_semicolon(&self) -> bool
pub fn trailing_comma(&self) -> SeparatorTactic
[src]
pub fn trailing_comma(&self) -> SeparatorTactic
pub fn match_block_trailing_comma(&self) -> bool
[src]
pub fn match_block_trailing_comma(&self) -> bool
pub fn blank_lines_upper_bound(&self) -> usize
[src]
pub fn blank_lines_upper_bound(&self) -> usize
pub fn blank_lines_lower_bound(&self) -> usize
[src]
pub fn blank_lines_lower_bound(&self) -> usize
pub fn edition(&self) -> Edition
[src]
pub fn edition(&self) -> Edition
pub fn merge_derives(&self) -> bool
[src]
pub fn merge_derives(&self) -> bool
pub fn use_try_shorthand(&self) -> bool
[src]
pub fn use_try_shorthand(&self) -> bool
pub fn use_field_init_shorthand(&self) -> bool
[src]
pub fn use_field_init_shorthand(&self) -> bool
pub fn force_explicit_abi(&self) -> bool
[src]
pub fn force_explicit_abi(&self) -> bool
pub fn condense_wildcard_suffixes(&self) -> bool
[src]
pub fn condense_wildcard_suffixes(&self) -> bool
pub fn color(&self) -> Color
[src]
pub fn color(&self) -> Color
pub fn required_version(&self) -> String
[src]
pub fn required_version(&self) -> String
pub fn unstable_features(&self) -> bool
[src]
pub fn unstable_features(&self) -> bool
pub fn disable_all_formatting(&self) -> bool
[src]
pub fn disable_all_formatting(&self) -> bool
pub fn skip_children(&self) -> bool
[src]
pub fn skip_children(&self) -> bool
pub fn hide_parse_errors(&self) -> bool
[src]
pub fn hide_parse_errors(&self) -> bool
pub fn error_on_line_overflow(&self) -> bool
[src]
pub fn error_on_line_overflow(&self) -> bool
pub fn error_on_unformatted(&self) -> bool
[src]
pub fn error_on_unformatted(&self) -> bool
pub fn report_todo(&self) -> ReportTactic
[src]
pub fn report_todo(&self) -> ReportTactic
pub fn report_fixme(&self) -> ReportTactic
[src]
pub fn report_fixme(&self) -> ReportTactic
pub fn ignore(&self) -> IgnoreList
[src]
pub fn ignore(&self) -> IgnoreList
pub fn verbose(&self) -> Verbosity
[src]
pub fn verbose(&self) -> Verbosity
pub fn file_lines(&self) -> FileLines
[src]
pub fn file_lines(&self) -> FileLines
pub fn width_heuristics(&self) -> WidthHeuristics
[src]
pub fn width_heuristics(&self) -> WidthHeuristics
pub fn emit_mode(&self) -> EmitMode
[src]
pub fn emit_mode(&self) -> EmitMode
pub fn make_backup(&self) -> bool
[src]
pub fn make_backup(&self) -> bool
pub fn set<'a>(&'a mut self) -> ConfigSetter<'a>
[src]
pub fn set<'a>(&'a mut self) -> ConfigSetter<'a>
pub fn was_set<'a>(&'a self) -> ConfigWasSet<'a>
[src]
pub fn was_set<'a>(&'a self) -> ConfigWasSet<'a>
pub fn used_options(&self) -> PartialConfig
[src]
pub fn used_options(&self) -> PartialConfig
pub fn all_options(&self) -> PartialConfig
[src]
pub fn all_options(&self) -> PartialConfig
pub fn override_value(&mut self, key: &str, val: &str)
[src]
pub fn override_value(&mut self, key: &str, val: &str)
pub fn print_docs(out: &mut Write, include_unstable: bool)
[src]
pub fn print_docs(out: &mut Write, include_unstable: bool)
pub fn is_default(&self, key: &str) -> bool
[src]
pub fn is_default(&self, key: &str) -> bool
Returns true if the config key was explicitely set and is the default value.
Trait Implementations
impl Clone for Config
[src]
impl Clone for Config
fn clone(&self) -> Config
[src]
fn clone(&self) -> Config
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Default for Config
[src]
impl Default for Config