var searchIndex = {}; searchIndex["rustfmt"] = {"doc":"","items":[[3,"Summary","rustfmt","",null,null],[12,"has_diff","","",0,null],[3,"Indent","","",null,null],[12,"block_indent","","",1,null],[12,"alignment","","",1,null],[3,"FormattingError","","",null,null],[3,"FormatReport","","",null,null],[4,"ErrorKind","","",null,null],[13,"LineOverflow","","",2,null],[13,"TrailingWhitespace","","",2,null],[13,"BadIssue","","",2,null],[4,"Input","","",null,null],[13,"File","","",3,null],[13,"Text","","",3,null],[5,"format_input","","",null,{"inputs":[{"name":"input"},{"name":"config"},{"name":"option"}],"output":{"name":"result"}}],[5,"run","","",null,{"inputs":[{"name":"input"},{"name":"config"}],"output":{"name":"summary"}}],[0,"config","","",null,null],[3,"ConfigHelpItem","rustfmt::config","",null,null],[3,"Config","","",null,null],[12,"verbose","","",4,null],[12,"skip_children","","",4,null],[12,"file_lines","","",4,null],[12,"max_width","","",4,null],[12,"ideal_width","","",4,null],[12,"tab_spaces","","",4,null],[12,"fn_call_width","","",4,null],[12,"struct_lit_width","","",4,null],[12,"struct_variant_width","","",4,null],[12,"force_explicit_abi","","",4,null],[12,"newline_style","","",4,null],[12,"fn_brace_style","","",4,null],[12,"item_brace_style","","",4,null],[12,"else_if_brace_style","","",4,null],[12,"control_brace_style","","",4,null],[12,"impl_empty_single_line","","",4,null],[12,"fn_empty_single_line","","",4,null],[12,"fn_single_line","","",4,null],[12,"fn_return_indent","","",4,null],[12,"fn_args_paren_newline","","",4,null],[12,"fn_args_density","","",4,null],[12,"fn_args_layout","","",4,null],[12,"fn_arg_indent","","",4,null],[12,"type_punctuation_density","","",4,null],[12,"where_density","","",4,null],[12,"where_indent","","",4,null],[12,"where_layout","","",4,null],[12,"where_pred_indent","","",4,null],[12,"where_trailing_comma","","",4,null],[12,"generics_indent","","",4,null],[12,"struct_trailing_comma","","",4,null],[12,"struct_lit_trailing_comma","","",4,null],[12,"struct_lit_style","","",4,null],[12,"struct_lit_multiline_style","","",4,null],[12,"enum_trailing_comma","","",4,null],[12,"report_todo","","",4,null],[12,"report_fixme","","",4,null],[12,"chain_base_indent","","",4,null],[12,"chain_indent","","",4,null],[12,"chains_overflow_last","","",4,null],[12,"reorder_imports","","",4,null],[12,"reorder_imported_names","","",4,null],[12,"single_line_if_else_max_width","","",4,null],[12,"format_strings","","",4,null],[12,"force_format_strings","","",4,null],[12,"take_source_hints","","",4,null],[12,"hard_tabs","","",4,null],[12,"wrap_comments","","",4,null],[12,"normalize_comments","","",4,null],[12,"wrap_match_arms","","",4,null],[12,"match_block_trailing_comma","","",4,null],[12,"match_wildcard_trailing_comma","","",4,null],[12,"closure_block_indent_threshold","","",4,null],[12,"space_before_type_annotation","","",4,null],[12,"space_before_bound","","",4,null],[12,"use_try_shorthand","","",4,null],[12,"write_mode","","",4,null],[3,"ParsedConfig","","",null,null],[12,"verbose","","",5,null],[12,"skip_children","","",5,null],[12,"file_lines","","",5,null],[12,"max_width","","",5,null],[12,"ideal_width","","",5,null],[12,"tab_spaces","","",5,null],[12,"fn_call_width","","",5,null],[12,"struct_lit_width","","",5,null],[12,"struct_variant_width","","",5,null],[12,"force_explicit_abi","","",5,null],[12,"newline_style","","",5,null],[12,"fn_brace_style","","",5,null],[12,"item_brace_style","","",5,null],[12,"else_if_brace_style","","",5,null],[12,"control_brace_style","","",5,null],[12,"impl_empty_single_line","","",5,null],[12,"fn_empty_single_line","","",5,null],[12,"fn_single_line","","",5,null],[12,"fn_return_indent","","",5,null],[12,"fn_args_paren_newline","","",5,null],[12,"fn_args_density","","",5,null],[12,"fn_args_layout","","",5,null],[12,"fn_arg_indent","","",5,null],[12,"type_punctuation_density","","",5,null],[12,"where_density","","",5,null],[12,"where_indent","","",5,null],[12,"where_layout","","",5,null],[12,"where_pred_indent","","",5,null],[12,"where_trailing_comma","","",5,null],[12,"generics_indent","","",5,null],[12,"struct_trailing_comma","","",5,null],[12,"struct_lit_trailing_comma","","",5,null],[12,"struct_lit_style","","",5,null],[12,"struct_lit_multiline_style","","",5,null],[12,"enum_trailing_comma","","",5,null],[12,"report_todo","","",5,null],[12,"report_fixme","","",5,null],[12,"chain_base_indent","","",5,null],[12,"chain_indent","","",5,null],[12,"chains_overflow_last","","",5,null],[12,"reorder_imports","","",5,null],[12,"reorder_imported_names","","",5,null],[12,"single_line_if_else_max_width","","",5,null],[12,"format_strings","","",5,null],[12,"force_format_strings","","",5,null],[12,"take_source_hints","","",5,null],[12,"hard_tabs","","",5,null],[12,"wrap_comments","","",5,null],[12,"normalize_comments","","",5,null],[12,"wrap_match_arms","","",5,null],[12,"match_block_trailing_comma","","",5,null],[12,"match_wildcard_trailing_comma","","",5,null],[12,"closure_block_indent_threshold","","",5,null],[12,"space_before_type_annotation","","",5,null],[12,"space_before_bound","","",5,null],[12,"use_try_shorthand","","",5,null],[12,"write_mode","","",5,null],[4,"NewlineStyle","","",null,null],[13,"Windows","","",6,null],[13,"Unix","","",6,null],[13,"Native","","",6,null],[4,"BraceStyle","","",null,null],[13,"AlwaysNextLine","","",7,null],[13,"PreferSameLine","","",7,null],[13,"SameLineWhere","","",7,null],[4,"ControlBraceStyle","","",null,null],[13,"AlwaysSameLine","","",8,null],[13,"AlwaysNextLine","","",8,null],[4,"ElseIfBraceStyle","","",null,null],[13,"AlwaysSameLine","","",9,null],[13,"ClosingNextLine","","",9,null],[13,"AlwaysNextLine","","",9,null],[4,"ReturnIndent","","",null,null],[13,"WithArgs","","",10,null],[13,"WithWhereClause","","",10,null],[4,"StructLitStyle","","",null,null],[13,"Visual","","",11,null],[13,"Block","","",11,null],[4,"FnArgLayoutStyle","","",null,null],[13,"Visual","","",12,null],[13,"Block","","",12,null],[13,"BlockAlways","","",12,null],[4,"BlockIndentStyle","","",null,null],[13,"Inherit","","",13,null],[13,"Tabbed","","",13,null],[13,"Visual","","",13,null],[4,"Density","","",null,null],[13,"Compressed","","",14,null],[13,"Tall","","",14,null],[13,"CompressedIfEmpty","","",14,null],[13,"Vertical","","",14,null],[4,"TypeDensity","","",null,null],[13,"Compressed","","",15,null],[13,"Wide","","",15,null],[4,"LicensePolicy","","",null,null],[13,"NoLicense","","",16,null],[13,"TextLicense","","",16,null],[13,"FileLicense","","",16,null],[4,"MultilineStyle","","",null,null],[13,"PreferSingle","","",17,null],[13,"ForceMulti","","",17,null],[4,"ReportTactic","","",null,null],[13,"Always","","",18,null],[13,"Unnumbered","","",18,null],[13,"Never","","",18,null],[4,"WriteMode","","",null,null],[13,"Replace","","",19,null],[13,"Overwrite","","",19,null],[13,"Display","","",19,null],[13,"Diff","","",19,null],[13,"Coverage","","",19,null],[13,"Plain","","",19,null],[13,"Checkstyle","","",19,null],[8,"ConfigType","","Trait for types that can be used in `Config`.",null,null],[10,"doc_hint","","Returns hint text for use in `Config::print_docs()`. For enum types, this is a\npipe-separated list of variants; for other types it returns "<type>".",20,{"inputs":[],"output":{"name":"string"}}],[11,"fmt","","",6,null],[11,"eq","","",6,null],[11,"clone","","",6,null],[11,"decode","","",6,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[11,"from_str","","",6,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"doc_hint","","",6,{"inputs":[],"output":{"name":"string"}}],[11,"fmt","","",7,null],[11,"eq","","",7,null],[11,"clone","","",7,null],[11,"decode","","",7,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[11,"from_str","","",7,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"doc_hint","","",7,{"inputs":[],"output":{"name":"string"}}],[11,"fmt","","",8,null],[11,"eq","","",8,null],[11,"clone","","",8,null],[11,"decode","","",8,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[11,"from_str","","",8,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"doc_hint","","",8,{"inputs":[],"output":{"name":"string"}}],[11,"fmt","","",9,null],[11,"eq","","",9,null],[11,"clone","","",9,null],[11,"decode","","",9,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[11,"from_str","","",9,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"doc_hint","","",9,{"inputs":[],"output":{"name":"string"}}],[11,"fmt","","",10,null],[11,"eq","","",10,null],[11,"clone","","",10,null],[11,"decode","","",10,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[11,"from_str","","",10,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"doc_hint","","",10,{"inputs":[],"output":{"name":"string"}}],[11,"fmt","","",11,null],[11,"eq","","",11,null],[11,"clone","","",11,null],[11,"decode","","",11,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[11,"from_str","","",11,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"doc_hint","","",11,{"inputs":[],"output":{"name":"string"}}],[11,"fmt","","",12,null],[11,"eq","","",12,null],[11,"clone","","",12,null],[11,"decode","","",12,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[11,"from_str","","",12,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"doc_hint","","",12,{"inputs":[],"output":{"name":"string"}}],[11,"fmt","","",13,null],[11,"eq","","",13,null],[11,"clone","","",13,null],[11,"decode","","",13,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[11,"from_str","","",13,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"doc_hint","","",13,{"inputs":[],"output":{"name":"string"}}],[11,"fmt","","",14,null],[11,"eq","","",14,null],[11,"clone","","",14,null],[11,"decode","","",14,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[11,"from_str","","",14,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"doc_hint","","",14,{"inputs":[],"output":{"name":"string"}}],[11,"fmt","","",15,null],[11,"eq","","",15,null],[11,"clone","","",15,null],[11,"decode","","",15,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[11,"from_str","","",15,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"doc_hint","","",15,{"inputs":[],"output":{"name":"string"}}],[11,"to_list_tactic","","",14,null],[11,"fmt","","",16,null],[11,"eq","","",16,null],[11,"clone","","",16,null],[11,"decode","","",16,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[11,"from_str","","",16,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"doc_hint","","",16,{"inputs":[],"output":{"name":"string"}}],[11,"fmt","","",17,null],[11,"eq","","",17,null],[11,"clone","","",17,null],[11,"decode","","",17,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[11,"from_str","","",17,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"doc_hint","","",17,{"inputs":[],"output":{"name":"string"}}],[11,"to_list_tactic","","",17,null],[11,"fmt","","",18,null],[11,"eq","","",18,null],[11,"clone","","",18,null],[11,"decode","","",18,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[11,"from_str","","",18,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"doc_hint","","",18,{"inputs":[],"output":{"name":"string"}}],[11,"fmt","","",19,null],[11,"eq","","",19,null],[11,"clone","","",19,null],[11,"decode","","",19,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[11,"from_str","","",19,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"doc_hint","","",19,{"inputs":[],"output":{"name":"string"}}],[11,"option_name","","",21,null],[11,"doc_string","","",21,null],[11,"variant_names","","",21,null],[11,"default","","",21,null],[11,"clone","","",4,null],[11,"decode","","",4,{"inputs":[{"name":"__d"}],"output":{"name":"result"}}],[11,"clone","","",5,null],[11,"decode","","",5,{"inputs":[{"name":"__d"}],"output":{"name":"result"}}],[11,"from_toml","","",4,{"inputs":[{"name":"str"}],"output":{"name":"config"}}],[11,"override_value","","",4,null],[11,"print_docs","","",4,{"inputs":[],"output":null}],[11,"default","","",4,{"inputs":[],"output":{"name":"config"}}],[0,"codemap","rustfmt","This module contains utilities that work with the `CodeMap` from libsyntax / syntex_syntax.\nThis includes extension traits and methods for looking up spans and line ranges for AST nodes.",null,null],[3,"LineRange","rustfmt::codemap","A range of lines in a file, inclusive of both ends.",null,null],[12,"file","","",22,null],[12,"lo","","",22,null],[12,"hi","","",22,null],[8,"SpanUtils","","",null,null],[10,"span_after","","",23,null],[10,"span_after_last","","",23,null],[10,"span_before","","",23,null],[8,"LineRangeUtils","","",null,null],[10,"lookup_line_range","","Returns the `LineRange` that corresponds to `span` in `self`.",24,null],[11,"file_name","","",22,null],[0,"filemap","rustfmt","",null,null],[5,"append_newline","rustfmt::filemap","",null,{"inputs":[{"name":"stringbuffer"}],"output":null}],[5,"write_all_files","","",null,{"inputs":[{"name":"filemap"},{"name":"t"},{"name":"config"}],"output":{"name":"result"}}],[5,"write_system_newlines","","",null,{"inputs":[{"name":"t"},{"name":"stringbuffer"},{"name":"config"}],"output":{"name":"result"}}],[5,"write_file","","",null,{"inputs":[{"name":"stringbuffer"},{"name":"str"},{"name":"t"},{"name":"config"}],"output":{"name":"result"}}],[6,"FileMap","","",null,null],[6,"FileRecord","","",null,null],[0,"file_lines","rustfmt","This module contains types and functions to support formatting specific line ranges.",null,null],[3,"FileLines","rustfmt::file_lines","A set of lines in files.",null,null],[3,"Files","","FileLines files iterator.",null,null],[11,"default","","",25,{"inputs":[],"output":{"name":"filelines"}}],[11,"fmt","","",25,null],[11,"clone","","",25,null],[11,"all","","Creates a `FileLines` that contains all lines in all files.",25,{"inputs":[],"output":{"name":"filelines"}}],[11,"files","","Returns an iterator over the files contained in `self`.",25,null],[11,"contains","","Returns true if `range` is fully contained in `self`.",25,null],[11,"intersects","","Returns true if any lines in `range` are in `self`.",25,null],[11,"next","","",26,null],[11,"from_str","","",25,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"decode","","",25,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[0,"visitor","rustfmt","",null,null],[3,"FmtVisitor","rustfmt::visitor","",null,null],[12,"parse_session","","",27,null],[12,"codemap","","",27,null],[12,"buffer","","",27,null],[12,"last_pos","","",27,null],[12,"block_indent","","",27,null],[12,"config","","",27,null],[11,"visit_block","","",27,null],[11,"visit_item","","",27,null],[11,"visit_trait_item","","",27,null],[11,"visit_impl_item","","",27,null],[11,"from_codemap","","",27,{"inputs":[{"name":"parsesess"},{"name":"config"}],"output":{"name":"fmtvisitor"}}],[11,"snippet","","",27,null],[11,"visit_attrs","","",27,null],[11,"format_separate_mod","","",27,null],[11,"get_context","","",27,null],[11,"format_foreign_mod","","",27,null],[11,"rewrite_fn","","",27,null],[11,"rewrite_required_fn","","",27,null],[11,"visit_enum","","",27,null],[11,"format_missing","","",27,null],[11,"format_missing_with_indent","","",27,null],[11,"format_imports","","",27,null],[11,"format_import","","",27,null],[0,"modules","rustfmt","",null,null],[5,"list_files","rustfmt::modules","List all the files containing modules of a crate.\nIf a file is used twice in a crate, it appears only once.",null,{"inputs":[{"name":"crate"},{"name":"codemap"}],"output":{"name":"hashmap"}}],[0,"rustfmt_diff","rustfmt","",null,null],[3,"Mismatch","rustfmt::rustfmt_diff","",null,null],[12,"line_number","","",28,null],[12,"lines","","",28,null],[4,"DiffLine","","",null,null],[13,"Context","","",29,null],[13,"Expected","","",29,null],[13,"Resulting","","",29,null],[5,"make_diff","","",null,{"inputs":[{"name":"str"},{"name":"str"},{"name":"usize"}],"output":{"name":"vec"}}],[5,"print_diff","","",null,{"inputs":[{"name":"vec"},{"name":"f"}],"output":null}],[5,"print_diff_basic","","",null,{"inputs":[{"name":"vec"},{"name":"f"}],"output":null}],[11,"eq","","",29,null],[11,"ne","","",29,null],[11,"fmt","","",29,null],[11,"eq","","",28,null],[11,"ne","","",28,null],[11,"fmt","","",28,null],[11,"clone","rustfmt","",0,null],[11,"fmt","","",0,null],[11,"new","","",0,{"inputs":[],"output":{"name":"summary"}}],[11,"has_operational_errors","","",0,null],[11,"has_parsing_errors","","",0,null],[11,"has_formatting_errors","","",0,null],[11,"add_operational_error","","",0,null],[11,"add_parsing_error","","",0,null],[11,"add_formatting_error","","",0,null],[11,"add_diff","","",0,null],[11,"has_no_errors","","",0,null],[11,"add","","",0,null],[8,"Spanned","","",null,null],[10,"span","","",30,null],[11,"fmt","","",1,null],[11,"clone","","",1,null],[11,"new","","",1,{"inputs":[{"name":"usize"},{"name":"usize"}],"output":{"name":"indent"}}],[11,"empty","","",1,{"inputs":[],"output":{"name":"indent"}}],[11,"block_indent","","",1,null],[11,"block_unindent","","",1,null],[11,"width","","",1,null],[11,"to_string","","",1,null],[11,"add","","",1,null],[11,"sub","","",1,null],[11,"add","","",1,null],[11,"sub","","",1,null],[11,"fmt","","",2,null],[11,"warning_count","","",31,null],[11,"has_warnings","","",31,null],[11,"fmt","","",31,null],[11,"fmt","","",3,null],[14,"impl_enum_decodable!","","",null,null],[14,"try_opt!","","",null,null],[11,"doc_hint","rustfmt::file_lines","",25,{"inputs":[],"output":{"name":"string"}}]],"paths":[[3,"Summary"],[3,"Indent"],[4,"ErrorKind"],[4,"Input"],[3,"Config"],[3,"ParsedConfig"],[4,"NewlineStyle"],[4,"BraceStyle"],[4,"ControlBraceStyle"],[4,"ElseIfBraceStyle"],[4,"ReturnIndent"],[4,"StructLitStyle"],[4,"FnArgLayoutStyle"],[4,"BlockIndentStyle"],[4,"Density"],[4,"TypeDensity"],[4,"LicensePolicy"],[4,"MultilineStyle"],[4,"ReportTactic"],[4,"WriteMode"],[8,"ConfigType"],[3,"ConfigHelpItem"],[3,"LineRange"],[8,"SpanUtils"],[8,"LineRangeUtils"],[3,"FileLines"],[3,"Files"],[3,"FmtVisitor"],[3,"Mismatch"],[4,"DiffLine"],[8,"Spanned"],[3,"FormatReport"]]}; initSearch(searchIndex);