Debian Codegraph @

src/config.rs

raw symbols SCIP
1 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::collectionsrust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/::HashMaprust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/HashMap#;
2 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::pathrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/::PathBufrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/PathBuf#;
3
4 use claprust-analyzer cargo clap 4.5.60 crate/::parserrust-analyzer cargo clap_builder 4.5.60 parser/::ValueSourcerust-analyzer cargo clap_builder 4.5.60 parser/matches/value_source/ValueSource#;
5 use regexrust-analyzer cargo regex 1.12.3 crate/::Regexrust-analyzer cargo regex 1.12.3 regex/string/Regex#;
6 use syntectrust-analyzer cargo syntect 5.3.0 crate/::highlightingrust-analyzer cargo syntect 5.3.0 highlighting/::Stylerust-analyzer cargo syntect 5.3.0 highlighting/style/Style# as SyntectStylerust-analyzer cargo syntect 5.3.0 highlighting/style/Style#;
7 use syntectrust-analyzer cargo syntect 5.3.0 crate/::highlightingrust-analyzer cargo syntect 5.3.0 highlighting/::Themerust-analyzer cargo syntect 5.3.0 highlighting/theme/Theme# as SyntaxThemerust-analyzer cargo syntect 5.3.0 highlighting/theme/Theme#;
8 use syntectrust-analyzer cargo syntect 5.3.0 crate/::parsingrust-analyzer cargo syntect 5.3.0 parsing/::SyntaxSetrust-analyzer cargo syntect 5.3.0 parsing/syntax_set/SyntaxSet#;
9
10 use craterust-analyzer cargo git-delta 0.19.2 crate/::ansirust-analyzer cargo git-delta 0.19.2 ansi/;
11 use craterust-analyzer cargo git-delta 0.19.2 crate/::clirust-analyzer cargo git-delta 0.19.2 cli/;
12 use craterust-analyzer cargo git-delta 0.19.2 crate/::colorrust-analyzer cargo git-delta 0.19.2 color/::{selfrust-analyzer cargo git-delta 0.19.2 color/, ColorModerust-analyzer cargo git-delta 0.19.2 color/ColorMode#};
13 use craterust-analyzer cargo git-delta 0.19.2 crate/::deltarust-analyzer cargo git-delta 0.19.2 delta/::Staterust-analyzer cargo git-delta 0.19.2 delta/State#;
14 use craterust-analyzer cargo git-delta 0.19.2 crate/::fatalrust-analyzer cargo git-delta 0.19.2 fatal().;
15 use craterust-analyzer cargo git-delta 0.19.2 crate/::featuresrust-analyzer cargo git-delta 0.19.2 features/::navigaterust-analyzer cargo git-delta 0.19.2 features/navigate/;
16 use craterust-analyzer cargo git-delta 0.19.2 crate/::featuresrust-analyzer cargo git-delta 0.19.2 features/::side_by_siderust-analyzer cargo git-delta 0.19.2 features/side_by_side/::{selfrust-analyzer cargo git-delta 0.19.2 features/side_by_side/, ansifillrust-analyzer cargo git-delta 0.19.2 features/side_by_side/ansifill/, LeftRightrust-analyzer cargo git-delta 0.19.2 features/side_by_side/LeftRight#};
17 use craterust-analyzer cargo git-delta 0.19.2 crate/::git_configrust-analyzer cargo git-delta 0.19.2 git_config/::GitConfigrust-analyzer cargo git-delta 0.19.2 git_config/GitConfig#;
18 use craterust-analyzer cargo git-delta 0.19.2 crate/::handlersrust-analyzer cargo git-delta 0.19.2 handlers/;
19 use craterust-analyzer cargo git-delta 0.19.2 crate/::handlersrust-analyzer cargo git-delta 0.19.2 handlers/::blamerust-analyzer cargo git-delta 0.19.2 handlers/blame/::parse_blame_line_numbersrust-analyzer cargo git-delta 0.19.2 handlers/blame/parse_blame_line_numbers().;
20 use craterust-analyzer cargo git-delta 0.19.2 crate/::handlersrust-analyzer cargo git-delta 0.19.2 handlers/::blamerust-analyzer cargo git-delta 0.19.2 handlers/blame/::BlameLineNumbersrust-analyzer cargo git-delta 0.19.2 handlers/blame/BlameLineNumbers#;
21 use craterust-analyzer cargo git-delta 0.19.2 crate/::minusplusrust-analyzer cargo git-delta 0.19.2 minusplus/::MinusPlusrust-analyzer cargo git-delta 0.19.2 minusplus/MinusPlus#;
22 use craterust-analyzer cargo git-delta 0.19.2 crate/::paintrust-analyzer cargo git-delta 0.19.2 paint/::BgFillMethodrust-analyzer cargo git-delta 0.19.2 paint/BgFillMethod#;
23 use craterust-analyzer cargo git-delta 0.19.2 crate/::parse_stylesrust-analyzer cargo git-delta 0.19.2 parse_styles/;
24 use craterust-analyzer cargo git-delta 0.19.2 crate/::stylerust-analyzer cargo git-delta 0.19.2 style/;
25 use craterust-analyzer cargo git-delta 0.19.2 crate/::stylerust-analyzer cargo git-delta 0.19.2 style/::Stylerust-analyzer cargo git-delta 0.19.2 style/Style#;
26 use craterust-analyzer cargo git-delta 0.19.2 crate/::testsrust-analyzer cargo git-delta 0.19.2 tests/::TESTINGrust-analyzer cargo git-delta 0.19.2 tests/TESTING.;
27 use craterust-analyzer cargo git-delta 0.19.2 crate/::utilsrust-analyzer cargo git-delta 0.19.2 utils/;
28 use craterust-analyzer cargo git-delta 0.19.2 crate/::utilsrust-analyzer cargo git-delta 0.19.2 utils/::batrust-analyzer cargo git-delta 0.19.2 utils/bat/::outputrust-analyzer cargo git-delta 0.19.2 utils/bat/output/::PagingModerust-analyzer cargo git-delta 0.19.2 utils/bat/output/PagingMode#;
29 use craterust-analyzer cargo git-delta 0.19.2 crate/::utilsrust-analyzer cargo git-delta 0.19.2 utils/::regex_replacementrust-analyzer cargo git-delta 0.19.2 utils/regex_replacement/::RegexReplacementrust-analyzer cargo git-delta 0.19.2 utils/regex_replacement/RegexReplacement#;
30 use craterust-analyzer cargo git-delta 0.19.2 crate/::wrappingrust-analyzer cargo git-delta 0.19.2 wrapping/::WrapConfigrust-analyzer cargo git-delta 0.19.2 wrapping/WrapConfig#;
31
32 pub const INLINE_SYMBOL_WIDTH_1rust-analyzer cargo git-delta 0.19.2 config/INLINE_SYMBOL_WIDTH_1.: usize = 1;
33
34 // Used if an invalid default-language was specified.
35 pub const SYNTAX_FALLBACK_LANGrust-analyzer cargo git-delta 0.19.2 config/SYNTAX_FALLBACK_LANG.: &str = "txt";
36
37 #[cfg_attr(test, derive(Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:))]
38 pub struct Configrust-analyzer cargo git-delta 0.19.2 config/Config# {
39 pub available_terminal_widthrust-analyzer cargo git-delta 0.19.2 config/Config#available_terminal_width.: usize,
40 pub background_color_extends_to_terminal_widthrust-analyzer cargo git-delta 0.19.2 config/Config#background_color_extends_to_terminal_width.: bool,
41 pub blame_code_stylerust-analyzer cargo git-delta 0.19.2 config/Config#blame_code_style.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stylerust-analyzer cargo git-delta 0.19.2 style/Style#>,
42 pub blame_formatrust-analyzer cargo git-delta 0.19.2 config/Config#blame_format.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#,
43 pub blame_separator_formatrust-analyzer cargo git-delta 0.19.2 config/Config#blame_separator_format.: BlameLineNumbersrust-analyzer cargo git-delta 0.19.2 handlers/blame/BlameLineNumbers#,
44 pub blame_paletterust-analyzer cargo git-delta 0.19.2 config/Config#blame_palette.: Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>,
45 pub blame_separator_stylerust-analyzer cargo git-delta 0.19.2 config/Config#blame_separator_style.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stylerust-analyzer cargo git-delta 0.19.2 style/Style#>,
46 pub blame_timestamp_formatrust-analyzer cargo git-delta 0.19.2 config/Config#blame_timestamp_format.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#,
47 pub blame_timestamp_output_formatrust-analyzer cargo git-delta 0.19.2 config/Config#blame_timestamp_output_format.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>,
48 pub color_onlyrust-analyzer cargo git-delta 0.19.2 config/Config#color_only.: bool,
49 pub commit_regexrust-analyzer cargo git-delta 0.19.2 config/Config#commit_regex.: Regexrust-analyzer cargo regex 1.12.3 regex/string/Regex#,
50 pub commit_stylerust-analyzer cargo git-delta 0.19.2 config/Config#commit_style.: Stylerust-analyzer cargo git-delta 0.19.2 style/Style#,
51 pub cwd_of_delta_processrust-analyzer cargo git-delta 0.19.2 config/Config#cwd_of_delta_process.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<PathBufrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/PathBuf#>,
52 pub cwd_of_user_shell_processrust-analyzer cargo git-delta 0.19.2 config/Config#cwd_of_user_shell_process.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<PathBufrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/PathBuf#>,
53 pub cwd_relative_to_repo_rootrust-analyzer cargo git-delta 0.19.2 config/Config#cwd_relative_to_repo_root.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>,
54 pub decorations_widthrust-analyzer cargo git-delta 0.19.2 config/Config#decorations_width.: clirust-analyzer cargo git-delta 0.19.2 cli/::Widthrust-analyzer cargo git-delta 0.19.2 cli/Width#,
55 pub default_languagerust-analyzer cargo git-delta 0.19.2 config/Config#default_language.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#,
56 pub diff_argsrust-analyzer cargo git-delta 0.19.2 config/Config#diff_args.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#,
57 pub diff_stat_align_widthrust-analyzer cargo git-delta 0.19.2 config/Config#diff_stat_align_width.: usize,
58 pub error_exit_coderust-analyzer cargo git-delta 0.19.2 config/Config#error_exit_code.: i32,
59 pub file_added_labelrust-analyzer cargo git-delta 0.19.2 config/Config#file_added_label.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#,
60 pub file_copied_labelrust-analyzer cargo git-delta 0.19.2 config/Config#file_copied_label.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#,
61 pub file_modified_labelrust-analyzer cargo git-delta 0.19.2 config/Config#file_modified_label.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#,
62 pub file_removed_labelrust-analyzer cargo git-delta 0.19.2 config/Config#file_removed_label.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#,
63 pub file_renamed_labelrust-analyzer cargo git-delta 0.19.2 config/Config#file_renamed_label.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#,
64 pub file_regex_replacementrust-analyzer cargo git-delta 0.19.2 config/Config#file_regex_replacement.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<RegexReplacementrust-analyzer cargo git-delta 0.19.2 utils/regex_replacement/RegexReplacement#>,
65 pub right_arrowrust-analyzer cargo git-delta 0.19.2 config/Config#right_arrow.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#,
66 pub file_stylerust-analyzer cargo git-delta 0.19.2 config/Config#file_style.: Stylerust-analyzer cargo git-delta 0.19.2 style/Style#,
67 pub git_configrust-analyzer cargo git-delta 0.19.2 config/Config#git_config.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<GitConfigrust-analyzer cargo git-delta 0.19.2 git_config/GitConfig#>,
68 pub git_minus_stylerust-analyzer cargo git-delta 0.19.2 config/Config#git_minus_style.: Stylerust-analyzer cargo git-delta 0.19.2 style/Style#,
69 pub git_plus_stylerust-analyzer cargo git-delta 0.19.2 config/Config#git_plus_style.: Stylerust-analyzer cargo git-delta 0.19.2 style/Style#,
70 pub grep_context_line_stylerust-analyzer cargo git-delta 0.19.2 config/Config#grep_context_line_style.: Stylerust-analyzer cargo git-delta 0.19.2 style/Style#,
71 pub grep_file_stylerust-analyzer cargo git-delta 0.19.2 config/Config#grep_file_style.: Stylerust-analyzer cargo git-delta 0.19.2 style/Style#,
72 pub classic_grep_header_file_stylerust-analyzer cargo git-delta 0.19.2 config/Config#classic_grep_header_file_style.: Stylerust-analyzer cargo git-delta 0.19.2 style/Style#,
73 pub classic_grep_header_stylerust-analyzer cargo git-delta 0.19.2 config/Config#classic_grep_header_style.: Stylerust-analyzer cargo git-delta 0.19.2 style/Style#,
74 pub ripgrep_header_stylerust-analyzer cargo git-delta 0.19.2 config/Config#ripgrep_header_style.: Stylerust-analyzer cargo git-delta 0.19.2 style/Style#,
75 pub grep_line_number_stylerust-analyzer cargo git-delta 0.19.2 config/Config#grep_line_number_style.: Stylerust-analyzer cargo git-delta 0.19.2 style/Style#,
76 pub grep_match_line_stylerust-analyzer cargo git-delta 0.19.2 config/Config#grep_match_line_style.: Stylerust-analyzer cargo git-delta 0.19.2 style/Style#,
77 pub grep_match_word_stylerust-analyzer cargo git-delta 0.19.2 config/Config#grep_match_word_style.: Stylerust-analyzer cargo git-delta 0.19.2 style/Style#,
78 pub grep_output_typerust-analyzer cargo git-delta 0.19.2 config/Config#grep_output_type.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<GrepTyperust-analyzer cargo git-delta 0.19.2 config/GrepType#>,
79 pub grep_separator_symbolrust-analyzer cargo git-delta 0.19.2 config/Config#grep_separator_symbol.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#,
80 pub handle_merge_conflictsrust-analyzer cargo git-delta 0.19.2 config/Config#handle_merge_conflicts.: bool,
81 pub hostnamerust-analyzer cargo git-delta 0.19.2 config/Config#hostname.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>,
82 pub hunk_header_file_stylerust-analyzer cargo git-delta 0.19.2 config/Config#hunk_header_file_style.: Stylerust-analyzer cargo git-delta 0.19.2 style/Style#,
83 pub hunk_header_line_number_stylerust-analyzer cargo git-delta 0.19.2 config/Config#hunk_header_line_number_style.: Stylerust-analyzer cargo git-delta 0.19.2 style/Style#,
84 pub hunk_header_style_include_file_pathrust-analyzer cargo git-delta 0.19.2 config/Config#hunk_header_style_include_file_path.: HunkHeaderIncludeFilePathrust-analyzer cargo git-delta 0.19.2 config/HunkHeaderIncludeFilePath#,
85 pub hunk_header_style_include_line_numberrust-analyzer cargo git-delta 0.19.2 config/Config#hunk_header_style_include_line_number.: HunkHeaderIncludeLineNumberrust-analyzer cargo git-delta 0.19.2 config/HunkHeaderIncludeLineNumber#,
86 pub hunk_header_style_include_code_fragmentrust-analyzer cargo git-delta 0.19.2 config/Config#hunk_header_style_include_code_fragment.: HunkHeaderIncludeCodeFragmentrust-analyzer cargo git-delta 0.19.2 config/HunkHeaderIncludeCodeFragment#,
87 pub hunk_header_stylerust-analyzer cargo git-delta 0.19.2 config/Config#hunk_header_style.: Stylerust-analyzer cargo git-delta 0.19.2 style/Style#,
88 pub hunk_labelrust-analyzer cargo git-delta 0.19.2 config/Config#hunk_label.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#,
89 pub hyperlinks_commit_link_formatrust-analyzer cargo git-delta 0.19.2 config/Config#hyperlinks_commit_link_format.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>,
90 pub hyperlinks_file_link_formatrust-analyzer cargo git-delta 0.19.2 config/Config#hyperlinks_file_link_format.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#,
91 pub hyperlinksrust-analyzer cargo git-delta 0.19.2 config/Config#hyperlinks.: bool,
92 pub inline_hint_stylerust-analyzer cargo git-delta 0.19.2 config/Config#inline_hint_style.: Stylerust-analyzer cargo git-delta 0.19.2 style/Style#,
93 pub inspect_raw_linesrust-analyzer cargo git-delta 0.19.2 config/Config#inspect_raw_lines.: clirust-analyzer cargo git-delta 0.19.2 cli/::InspectRawLinesrust-analyzer cargo git-delta 0.19.2 cli/InspectRawLines#,
94 pub keep_plus_minus_markersrust-analyzer cargo git-delta 0.19.2 config/Config#keep_plus_minus_markers.: bool,
95 pub line_buffer_sizerust-analyzer cargo git-delta 0.19.2 config/Config#line_buffer_size.: usize,
96 pub line_fill_methodrust-analyzer cargo git-delta 0.19.2 config/Config#line_fill_method.: BgFillMethodrust-analyzer cargo git-delta 0.19.2 paint/BgFillMethod#,
97 pub line_numbers_formatrust-analyzer cargo git-delta 0.19.2 config/Config#line_numbers_format.: LeftRightrust-analyzer cargo git-delta 0.19.2 features/side_by_side/LeftRight#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>,
98 pub line_numbers_style_leftrightrust-analyzer cargo git-delta 0.19.2 config/Config#line_numbers_style_leftright.: LeftRightrust-analyzer cargo git-delta 0.19.2 features/side_by_side/LeftRight#<Stylerust-analyzer cargo git-delta 0.19.2 style/Style#>,
99 pub line_numbers_style_minusplusrust-analyzer cargo git-delta 0.19.2 config/Config#line_numbers_style_minusplus.: MinusPlusrust-analyzer cargo git-delta 0.19.2 minusplus/MinusPlus#<Stylerust-analyzer cargo git-delta 0.19.2 style/Style#>,
100 pub line_numbers_zero_stylerust-analyzer cargo git-delta 0.19.2 config/Config#line_numbers_zero_style.: Stylerust-analyzer cargo git-delta 0.19.2 style/Style#,
101 pub line_numbersrust-analyzer cargo git-delta 0.19.2 config/Config#line_numbers.: bool,
102 pub styles_maprust-analyzer cargo git-delta 0.19.2 config/Config#styles_map.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<HashMaprust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/HashMap#<stylerust-analyzer cargo git-delta 0.19.2 style/::AnsiTermStyleEqualityKeyrust-analyzer cargo git-delta 0.19.2 style/AnsiTermStyleEqualityKey#, Stylerust-analyzer cargo git-delta 0.19.2 style/Style#>>,
103 pub max_line_distance_for_naively_paired_linesrust-analyzer cargo git-delta 0.19.2 config/Config#max_line_distance_for_naively_paired_lines.: f64,
104 pub max_line_distancerust-analyzer cargo git-delta 0.19.2 config/Config#max_line_distance.: f64,
105 pub max_line_lengthrust-analyzer cargo git-delta 0.19.2 config/Config#max_line_length.: usize,
106 pub max_syntax_lengthrust-analyzer cargo git-delta 0.19.2 config/Config#max_syntax_length.: usize,
107 pub merge_conflict_begin_symbolrust-analyzer cargo git-delta 0.19.2 config/Config#merge_conflict_begin_symbol.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#,
108 pub merge_conflict_ours_diff_header_stylerust-analyzer cargo git-delta 0.19.2 config/Config#merge_conflict_ours_diff_header_style.: Stylerust-analyzer cargo git-delta 0.19.2 style/Style#,
109 pub merge_conflict_theirs_diff_header_stylerust-analyzer cargo git-delta 0.19.2 config/Config#merge_conflict_theirs_diff_header_style.: Stylerust-analyzer cargo git-delta 0.19.2 style/Style#,
110 pub merge_conflict_end_symbolrust-analyzer cargo git-delta 0.19.2 config/Config#merge_conflict_end_symbol.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#,
111 pub minus_emph_stylerust-analyzer cargo git-delta 0.19.2 config/Config#minus_emph_style.: Stylerust-analyzer cargo git-delta 0.19.2 style/Style#,
112 pub minus_empty_line_marker_stylerust-analyzer cargo git-delta 0.19.2 config/Config#minus_empty_line_marker_style.: Stylerust-analyzer cargo git-delta 0.19.2 style/Style#,
113 pub minus_filerust-analyzer cargo git-delta 0.19.2 config/Config#minus_file.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<PathBufrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/PathBuf#>,
114 pub minus_non_emph_stylerust-analyzer cargo git-delta 0.19.2 config/Config#minus_non_emph_style.: Stylerust-analyzer cargo git-delta 0.19.2 style/Style#,
115 pub minus_stylerust-analyzer cargo git-delta 0.19.2 config/Config#minus_style.: Stylerust-analyzer cargo git-delta 0.19.2 style/Style#,
116 pub navigate_regexrust-analyzer cargo git-delta 0.19.2 config/Config#navigate_regex.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>,
117 pub navigaterust-analyzer cargo git-delta 0.19.2 config/Config#navigate.: bool,
118 pub null_stylerust-analyzer cargo git-delta 0.19.2 config/Config#null_style.: Stylerust-analyzer cargo git-delta 0.19.2 style/Style#,
119 pub null_syntect_stylerust-analyzer cargo git-delta 0.19.2 config/Config#null_syntect_style.: SyntectStylerust-analyzer cargo syntect 5.3.0 highlighting/style/Style#,
120 pub pagerrust-analyzer cargo git-delta 0.19.2 config/Config#pager.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>,
121 pub paging_moderust-analyzer cargo git-delta 0.19.2 config/Config#paging_mode.: PagingModerust-analyzer cargo git-delta 0.19.2 utils/bat/output/PagingMode#,
122 pub plus_emph_stylerust-analyzer cargo git-delta 0.19.2 config/Config#plus_emph_style.: Stylerust-analyzer cargo git-delta 0.19.2 style/Style#,
123 pub plus_empty_line_marker_stylerust-analyzer cargo git-delta 0.19.2 config/Config#plus_empty_line_marker_style.: Stylerust-analyzer cargo git-delta 0.19.2 style/Style#,
124 pub plus_filerust-analyzer cargo git-delta 0.19.2 config/Config#plus_file.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<PathBufrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/PathBuf#>,
125 pub plus_non_emph_stylerust-analyzer cargo git-delta 0.19.2 config/Config#plus_non_emph_style.: Stylerust-analyzer cargo git-delta 0.19.2 style/Style#,
126 pub plus_stylerust-analyzer cargo git-delta 0.19.2 config/Config#plus_style.: Stylerust-analyzer cargo git-delta 0.19.2 style/Style#,
127 pub relative_pathsrust-analyzer cargo git-delta 0.19.2 config/Config#relative_paths.: bool,
128 pub show_themesrust-analyzer cargo git-delta 0.19.2 config/Config#show_themes.: bool,
129 pub side_by_side_datarust-analyzer cargo git-delta 0.19.2 config/Config#side_by_side_data.: side_by_siderust-analyzer cargo git-delta 0.19.2 features/side_by_side/::SideBySideDatarust-analyzer cargo git-delta 0.19.2 features/side_by_side/SideBySideData#,
130 pub side_by_siderust-analyzer cargo git-delta 0.19.2 config/Config#side_by_side.: bool,
131 pub syntax_setrust-analyzer cargo git-delta 0.19.2 config/Config#syntax_set.: SyntaxSetrust-analyzer cargo syntect 5.3.0 parsing/syntax_set/SyntaxSet#,
132 pub syntax_themerust-analyzer cargo git-delta 0.19.2 config/Config#syntax_theme.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<SyntaxThemerust-analyzer cargo syntect 5.3.0 highlighting/theme/Theme#>,
133 pub tab_cfgrust-analyzer cargo git-delta 0.19.2 config/Config#tab_cfg.: utilsrust-analyzer cargo git-delta 0.19.2 utils/::tabsrust-analyzer cargo git-delta 0.19.2 utils/tabs/::TabCfgrust-analyzer cargo git-delta 0.19.2 utils/tabs/TabCfg#,
134 pub tokenization_regexrust-analyzer cargo git-delta 0.19.2 config/Config#tokenization_regex.: Regexrust-analyzer cargo regex 1.12.3 regex/string/Regex#,
135 pub true_colorrust-analyzer cargo git-delta 0.19.2 config/Config#true_color.: bool,
136 pub truncation_symbolrust-analyzer cargo git-delta 0.19.2 config/Config#truncation_symbol.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#,
137 pub whitespace_error_stylerust-analyzer cargo git-delta 0.19.2 config/Config#whitespace_error_style.: Stylerust-analyzer cargo git-delta 0.19.2 style/Style#,
138 pub wrap_configrust-analyzer cargo git-delta 0.19.2 config/Config#wrap_config.: WrapConfigrust-analyzer cargo git-delta 0.19.2 wrapping/WrapConfig#,
139 pub zero_stylerust-analyzer cargo git-delta 0.19.2 config/Config#zero_style.: Stylerust-analyzer cargo git-delta 0.19.2 style/Style#,
140 }
141
142 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, Eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Eq:, PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:)]
143 pub enum GrepTyperust-analyzer cargo git-delta 0.19.2 config/GrepType# {
144 Ripgreprust-analyzer cargo git-delta 0.19.2 config/GrepType#Ripgrep#,
145 Classicrust-analyzer cargo git-delta 0.19.2 config/GrepType#Classic#,
146 }
147
148 #[cfg_attr(test, derive(Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:))]
149 pub enum HunkHeaderIncludeFilePathrust-analyzer cargo git-delta 0.19.2 config/HunkHeaderIncludeFilePath# {
150 Yesrust-analyzer cargo git-delta 0.19.2 config/HunkHeaderIncludeFilePath#Yes#,
151 Norust-analyzer cargo git-delta 0.19.2 config/HunkHeaderIncludeFilePath#No#,
152 }
153
154 #[cfg_attr(test, derive(Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:))]
155 pub enum HunkHeaderIncludeLineNumberrust-analyzer cargo git-delta 0.19.2 config/HunkHeaderIncludeLineNumber# {
156 Yesrust-analyzer cargo git-delta 0.19.2 config/HunkHeaderIncludeLineNumber#Yes#,
157 Norust-analyzer cargo git-delta 0.19.2 config/HunkHeaderIncludeLineNumber#No#,
158 }
159
160 #[cfg_attr(test, derive(Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:))]
161 pub enum HunkHeaderIncludeCodeFragmentrust-analyzer cargo git-delta 0.19.2 config/HunkHeaderIncludeCodeFragment# {
162 Yesrust-analyzer cargo git-delta 0.19.2 config/HunkHeaderIncludeCodeFragment#Yes#,
163 YesNoSpacerust-analyzer cargo git-delta 0.19.2 config/HunkHeaderIncludeCodeFragment#YesNoSpace#,
164 Norust-analyzer cargo git-delta 0.19.2 config/HunkHeaderIncludeCodeFragment#No#,
165 }
166
167 impl Configrust-analyzer cargo git-delta 0.19.2 config/Config# {
168 pub fn get_stylerust-analyzer cargo git-delta 0.19.2 config/impl#[Config]get_style().(&self, state: &Staterust-analyzer cargo git-delta 0.19.2 delta/State#) -> &Stylerust-analyzer cargo git-delta 0.19.2 style/Style# {
169 match state {
170 Staterust-analyzer cargo git-delta 0.19.2 delta/State#::HunkMinusrust-analyzer cargo git-delta 0.19.2 delta/State#HunkMinus#(_, _) => &self.minus_stylerust-analyzer cargo git-delta 0.19.2 config/Config#minus_style.,
171 Staterust-analyzer cargo git-delta 0.19.2 delta/State#::HunkZerorust-analyzer cargo git-delta 0.19.2 delta/State#HunkZero#(_, _) => &self.zero_stylerust-analyzer cargo git-delta 0.19.2 config/Config#zero_style.,
172 Staterust-analyzer cargo git-delta 0.19.2 delta/State#::HunkPlusrust-analyzer cargo git-delta 0.19.2 delta/State#HunkPlus#(_, _) => &self.plus_stylerust-analyzer cargo git-delta 0.19.2 config/Config#plus_style.,
173 Staterust-analyzer cargo git-delta 0.19.2 delta/State#::CommitMetarust-analyzer cargo git-delta 0.19.2 delta/State#CommitMeta# => &self.commit_stylerust-analyzer cargo git-delta 0.19.2 config/Config#commit_style.,
174 Staterust-analyzer cargo git-delta 0.19.2 delta/State#::DiffHeaderrust-analyzer cargo git-delta 0.19.2 delta/State#DiffHeader#(_) => &self.file_stylerust-analyzer cargo git-delta 0.19.2 config/Config#file_style.,
175 Staterust-analyzer cargo git-delta 0.19.2 delta/State#::Greprust-analyzer cargo git-delta 0.19.2 delta/State#Grep#(GrepTyperust-analyzer cargo git-delta 0.19.2 config/GrepType#::Ripgreprust-analyzer cargo git-delta 0.19.2 config/GrepType#Ripgrep#, _, _, _) => &self.classic_grep_header_stylerust-analyzer cargo git-delta 0.19.2 config/Config#classic_grep_header_style.,
176 Staterust-analyzer cargo git-delta 0.19.2 delta/State#::HunkHeaderrust-analyzer cargo git-delta 0.19.2 delta/State#HunkHeader#(_, _, _, _) => &self.hunk_header_stylerust-analyzer cargo git-delta 0.19.2 config/Config#hunk_header_style.,
177 Staterust-analyzer cargo git-delta 0.19.2 delta/State#::SubmoduleLogrust-analyzer cargo git-delta 0.19.2 delta/State#SubmoduleLog# => &self.file_stylerust-analyzer cargo git-delta 0.19.2 config/Config#file_style.,
178 _ => delta_unreachablerust-analyzer cargo git-delta 0.19.2 config/delta_unreachable().("Unreachable code reached in get_style."),
179 }
180 }
181
182 pub fn git_configrust-analyzer cargo git-delta 0.19.2 config/impl#[Config]git_config().(&self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<&GitConfigrust-analyzer cargo git-delta 0.19.2 git_config/GitConfig#> {
183 self.git_configrust-analyzer cargo git-delta 0.19.2 config/Config#git_config..as_refrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]as_ref().()
184 }
185 }
186
187 impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<clirust-analyzer cargo git-delta 0.19.2 cli/::Optrust-analyzer cargo git-delta 0.19.2 cli/Opt#> for Configrust-analyzer cargo git-delta 0.19.2 config/Config# {
188 fn fromrust-analyzer cargo git-delta 0.19.2 config/impl#[Config][`From<cli::Opt>`]from().(opt: clirust-analyzer cargo git-delta 0.19.2 cli/::Optrust-analyzer cargo git-delta 0.19.2 cli/Opt#) -> Selfrust-analyzer cargo git-delta 0.19.2 config/impl#[Config][`From<cli::Opt>`] {
189 let mut styles = parse_stylesrust-analyzer cargo git-delta 0.19.2 parse_styles/::parse_stylesrust-analyzer cargo git-delta 0.19.2 parse_styles/parse_styles().(&opt);
190 let styles_map = parse_stylesrust-analyzer cargo git-delta 0.19.2 parse_styles/::parse_styles_maprust-analyzer cargo git-delta 0.19.2 parse_styles/parse_styles_map().(&opt);
191
192 let wrap_config = WrapConfigrust-analyzer cargo git-delta 0.19.2 wrapping/WrapConfig#::from_optrust-analyzer cargo git-delta 0.19.2 wrapping/impl#[WrapConfig]from_opt().(&opt, styles[rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index()."inline-hint-style"]rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index().);
193
194 let max_line_distance_for_naively_paired_lines = opt
195 .envrust-analyzer cargo git-delta 0.19.2 cli/Opt#env.
196 .experimental_max_line_distance_for_naively_paired_linesrust-analyzer cargo git-delta 0.19.2 env/DeltaEnv#experimental_max_line_distance_for_naively_paired_lines.
197 .as_refrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]as_ref().()
198 .maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]map().(|s| s.parserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]parse().::<f64>().unwrap_orrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap_or().(0.0))
199 .unwrap_orrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]unwrap_or().(0.0);
200
201 let commit_regex = Regexrust-analyzer cargo regex 1.12.3 regex/string/Regex#::newrust-analyzer cargo regex 1.12.3 regex/string/impl#[Regex]new().(&opt.commit_regexrust-analyzer cargo git-delta 0.19.2 cli/Opt#commit_regex.).unwrap_or_elserust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap_or_else().(|_| {
202 fatalrust-analyzer cargo git-delta 0.19.2 fatal().(formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!(
203 "Invalid commit-regex: {}. \
204 The value must be a valid Rust regular expression. \
205 See https://docs.rs/regex.",
206 opt.commit_regexrust-analyzer cargo git-delta 0.19.2 cli/Opt#commit_regex.
207 ));
208 });
209
210 let tokenization_regex = Regexrust-analyzer cargo regex 1.12.3 regex/string/Regex#::newrust-analyzer cargo regex 1.12.3 regex/string/impl#[Regex]new().(&opt.tokenization_regexrust-analyzer cargo git-delta 0.19.2 cli/Opt#tokenization_regex.).unwrap_or_elserust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap_or_else().(|_| {
211 fatalrust-analyzer cargo git-delta 0.19.2 fatal().(formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!(
212 "Invalid word-diff-regex: {}. \
213 The value must be a valid Rust regular expression. \
214 See https://docs.rs/regex.",
215 opt.tokenization_regexrust-analyzer cargo git-delta 0.19.2 cli/Opt#tokenization_regex.
216 ));
217 });
218
219 let blame_palette = make_blame_paletterust-analyzer cargo git-delta 0.19.2 config/make_blame_palette().(opt.blame_paletterust-analyzer cargo git-delta 0.19.2 cli/Opt#blame_palette., opt.computedrust-analyzer cargo git-delta 0.19.2 cli/Opt#computed..color_moderust-analyzer cargo git-delta 0.19.2 cli/ComputedValues#color_mode.);
220
221 if blame_palette.is_emptyrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]is_empty().() {
222 fatalrust-analyzer cargo git-delta 0.19.2 fatal().("Option 'blame-palette' must not be empty.")
223 }
224
225 let file_added_label = opt.file_added_labelrust-analyzer cargo git-delta 0.19.2 cli/Opt#file_added_label.;
226 let file_copied_label = opt.file_copied_labelrust-analyzer cargo git-delta 0.19.2 cli/Opt#file_copied_label.;
227 let file_modified_label = opt.file_modified_labelrust-analyzer cargo git-delta 0.19.2 cli/Opt#file_modified_label.;
228 let file_removed_label = opt.file_removed_labelrust-analyzer cargo git-delta 0.19.2 cli/Opt#file_removed_label.;
229 let file_renamed_label = opt.file_renamed_labelrust-analyzer cargo git-delta 0.19.2 cli/Opt#file_renamed_label.;
230 let right_arrow = opt.right_arrowrust-analyzer cargo git-delta 0.19.2 cli/Opt#right_arrow.;
231 let hunk_label = opt.hunk_labelrust-analyzer cargo git-delta 0.19.2 cli/Opt#hunk_label.;
232
233 let line_fill_method = match opt.line_fill_methodrust-analyzer cargo git-delta 0.19.2 cli/Opt#line_fill_method..as_derefrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]as_deref().() {
234 // Note that "default" is not documented
235 Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#("ansi") | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#("default") | Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None# => BgFillMethodrust-analyzer cargo git-delta 0.19.2 paint/BgFillMethod#::TryAnsiSequencerust-analyzer cargo git-delta 0.19.2 paint/BgFillMethod#TryAnsiSequence#,
236 Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#("spaces") => BgFillMethodrust-analyzer cargo git-delta 0.19.2 paint/BgFillMethod#::Spacesrust-analyzer cargo git-delta 0.19.2 paint/BgFillMethod#Spaces#,
237 _ => fatalrust-analyzer cargo git-delta 0.19.2 fatal().("Invalid option for line-fill-method: Expected \"ansi\" or \"spaces\"."),
238 };
239
240 let side_by_side_data = side_by_siderust-analyzer cargo git-delta 0.19.2 features/side_by_side/::SideBySideDatarust-analyzer cargo git-delta 0.19.2 features/side_by_side/SideBySideData#::new_sbsrust-analyzer cargo git-delta 0.19.2 features/side_by_side/impl#[`MinusPlus<Panel>`]new_sbs().(
241 &opt.computedrust-analyzer cargo git-delta 0.19.2 cli/Opt#computed..decorations_widthrust-analyzer cargo git-delta 0.19.2 cli/ComputedValues#decorations_width.,
242 &opt.computedrust-analyzer cargo git-delta 0.19.2 cli/Opt#computed..available_terminal_widthrust-analyzer cargo git-delta 0.19.2 cli/ComputedValues#available_terminal_width.,
243 );
244 let side_by_side_data = ansifillrust-analyzer cargo git-delta 0.19.2 features/side_by_side/ansifill/::UseFullPanelWidthrust-analyzer cargo git-delta 0.19.2 features/side_by_side/ansifill/UseFullPanelWidth#::sbs_odd_fixrust-analyzer cargo git-delta 0.19.2 features/side_by_side/ansifill/impl#[UseFullPanelWidth]sbs_odd_fix().(
245 &opt.computedrust-analyzer cargo git-delta 0.19.2 cli/Opt#computed..decorations_widthrust-analyzer cargo git-delta 0.19.2 cli/ComputedValues#decorations_width.,
246 &line_fill_method,
247 side_by_side_data,
248 );
249
250 let navigate_regex = if (opt.navigaterust-analyzer cargo git-delta 0.19.2 cli/Opt#navigate. || opt.show_themesrust-analyzer cargo git-delta 0.19.2 cli/Opt#show_themes.)
251 && (opt.navigate_regexrust-analyzer cargo git-delta 0.19.2 cli/Opt#navigate_regex..is_nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]is_none().() || opt.navigate_regexrust-analyzer cargo git-delta 0.19.2 cli/Opt#navigate_regex. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`][`PartialEq<Self>`]eq().Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#("".to_stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[T][ToString]to_string().()))
252 {
253 Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(navigaterust-analyzer cargo git-delta 0.19.2 features/navigate/::make_navigate_regexrust-analyzer cargo git-delta 0.19.2 features/navigate/make_navigate_regex().(
254 opt.show_themesrust-analyzer cargo git-delta 0.19.2 cli/Opt#show_themes.,
255 &file_modified_label,
256 &file_added_label,
257 &file_removed_label,
258 &file_renamed_label,
259 &hunk_label,
260 ))
261 } else {
262 opt.navigate_regexrust-analyzer cargo git-delta 0.19.2 cli/Opt#navigate_regex.
263 };
264
265 let grep_output_type = match opt.grep_output_typerust-analyzer cargo git-delta 0.19.2 cli/Opt#grep_output_type..as_derefrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]as_deref().() {
266 Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#("ripgrep") => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(GrepTyperust-analyzer cargo git-delta 0.19.2 config/GrepType#::Ripgreprust-analyzer cargo git-delta 0.19.2 config/GrepType#Ripgrep#),
267 Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#("classic") => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(GrepTyperust-analyzer cargo git-delta 0.19.2 config/GrepType#::Classicrust-analyzer cargo git-delta 0.19.2 config/GrepType#Classic#),
268 Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None# => Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#,
269 _ => fatalrust-analyzer cargo git-delta 0.19.2 fatal().("Invalid option for grep-output-type: Expected \"ripgrep\" or \"classic\"."),
270 };
271
272 #[cfg(not(test))]
273 let cwd_of_delta_process = opt.env.current_dir;
274 #[cfg(test)]
275 let cwd_of_delta_process = Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(utilsrust-analyzer cargo git-delta 0.19.2 utils/::pathrust-analyzer cargo git-delta 0.19.2 utils/path/::fake_delta_cwd_for_testsrust-analyzer cargo git-delta 0.19.2 utils/path/fake_delta_cwd_for_tests().());
276
277 let cwd_relative_to_repo_root = opt.envrust-analyzer cargo git-delta 0.19.2 cli/Opt#env..git_prefixrust-analyzer cargo git-delta 0.19.2 env/DeltaEnv#git_prefix.;
278
279 let cwd_of_user_shell_process = utilsrust-analyzer cargo git-delta 0.19.2 utils/::pathrust-analyzer cargo git-delta 0.19.2 utils/path/::cwd_of_user_shell_processrust-analyzer cargo git-delta 0.19.2 utils/path/cwd_of_user_shell_process().(
280 cwd_of_delta_process.as_refrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]as_ref().(),
281 cwd_relative_to_repo_root.as_derefrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]as_deref().(),
282 );
283
284 Selfrust-analyzer cargo git-delta 0.19.2 config/impl#[Config][`From<cli::Opt>`] {
285 available_terminal_widthrust-analyzer cargo git-delta 0.19.2 config/Config#available_terminal_width.: opt.computedrust-analyzer cargo git-delta 0.19.2 cli/Opt#computed..available_terminal_widthrust-analyzer cargo git-delta 0.19.2 cli/ComputedValues#available_terminal_width.,
286 background_color_extends_to_terminal_widthrust-analyzer cargo git-delta 0.19.2 config/Config#background_color_extends_to_terminal_width.: opt
287 .computedrust-analyzer cargo git-delta 0.19.2 cli/Opt#computed.
288 .background_color_extends_to_terminal_widthrust-analyzer cargo git-delta 0.19.2 cli/ComputedValues#background_color_extends_to_terminal_width.,
289 blame_formatrust-analyzer cargo git-delta 0.19.2 config/Config#blame_format.: opt.blame_formatrust-analyzer cargo git-delta 0.19.2 cli/Opt#blame_format.,
290 blame_code_stylerust-analyzer cargo git-delta 0.19.2 config/Config#blame_code_style.: styles.removerust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`]remove().("blame-code-style"),
291 blame_paletterust-analyzer cargo git-delta 0.19.2 config/Config#blame_palette.,
292 blame_separator_formatrust-analyzer cargo git-delta 0.19.2 config/Config#blame_separator_format.: parse_blame_line_numbersrust-analyzer cargo git-delta 0.19.2 handlers/blame/parse_blame_line_numbers().(&opt.blame_separator_formatrust-analyzer cargo git-delta 0.19.2 cli/Opt#blame_separator_format.),
293 blame_separator_stylerust-analyzer cargo git-delta 0.19.2 config/Config#blame_separator_style.: styles.removerust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`]remove().("blame-separator-style"),
294 blame_timestamp_formatrust-analyzer cargo git-delta 0.19.2 config/Config#blame_timestamp_format.: opt.blame_timestamp_formatrust-analyzer cargo git-delta 0.19.2 cli/Opt#blame_timestamp_format.,
295 blame_timestamp_output_formatrust-analyzer cargo git-delta 0.19.2 config/Config#blame_timestamp_output_format.: opt.blame_timestamp_output_formatrust-analyzer cargo git-delta 0.19.2 cli/Opt#blame_timestamp_output_format.,
296 commit_stylerust-analyzer cargo git-delta 0.19.2 config/Config#commit_style.: styles[rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index()."commit-style"]rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index().,
297 color_onlyrust-analyzer cargo git-delta 0.19.2 config/Config#color_only.: opt.color_onlyrust-analyzer cargo git-delta 0.19.2 cli/Opt#color_only.,
298 commit_regexrust-analyzer cargo git-delta 0.19.2 config/Config#commit_regex.,
299 cwd_of_delta_processrust-analyzer cargo git-delta 0.19.2 config/Config#cwd_of_delta_process.,
300 cwd_of_user_shell_processrust-analyzer cargo git-delta 0.19.2 config/Config#cwd_of_user_shell_process.,
301 cwd_relative_to_repo_rootrust-analyzer cargo git-delta 0.19.2 config/Config#cwd_relative_to_repo_root.,
302 decorations_widthrust-analyzer cargo git-delta 0.19.2 config/Config#decorations_width.: opt.computedrust-analyzer cargo git-delta 0.19.2 cli/Opt#computed..decorations_widthrust-analyzer cargo git-delta 0.19.2 cli/ComputedValues#decorations_width.,
303 default_languagerust-analyzer cargo git-delta 0.19.2 config/Config#default_language.: opt.default_languagerust-analyzer cargo git-delta 0.19.2 cli/Opt#default_language.,
304 diff_argsrust-analyzer cargo git-delta 0.19.2 config/Config#diff_args.: opt.diff_argsrust-analyzer cargo git-delta 0.19.2 cli/Opt#diff_args.,
305 diff_stat_align_widthrust-analyzer cargo git-delta 0.19.2 config/Config#diff_stat_align_width.: opt.diff_stat_align_widthrust-analyzer cargo git-delta 0.19.2 cli/Opt#diff_stat_align_width.,
306 error_exit_coderust-analyzer cargo git-delta 0.19.2 config/Config#error_exit_code.: 2, // Use 2 for error because diff uses 0 and 1 for non-error.
307 file_added_labelrust-analyzer cargo git-delta 0.19.2 config/Config#file_added_label.,
308 file_copied_labelrust-analyzer cargo git-delta 0.19.2 config/Config#file_copied_label.,
309 file_modified_labelrust-analyzer cargo git-delta 0.19.2 config/Config#file_modified_label.,
310 file_removed_labelrust-analyzer cargo git-delta 0.19.2 config/Config#file_removed_label.,
311 file_renamed_labelrust-analyzer cargo git-delta 0.19.2 config/Config#file_renamed_label.,
312 file_regex_replacementrust-analyzer cargo git-delta 0.19.2 config/Config#file_regex_replacement.: opt
313 .file_regex_replacementrust-analyzer cargo git-delta 0.19.2 cli/Opt#file_regex_replacement.
314 .as_derefrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]as_deref().()
315 .and_thenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]and_then().(RegexReplacementrust-analyzer cargo git-delta 0.19.2 utils/regex_replacement/RegexReplacement#::from_sed_commandrust-analyzer cargo git-delta 0.19.2 utils/regex_replacement/impl#[RegexReplacement]from_sed_command().),
316 right_arrowrust-analyzer cargo git-delta 0.19.2 config/Config#right_arrow.,
317 hunk_labelrust-analyzer cargo git-delta 0.19.2 config/Config#hunk_label.,
318 file_stylerust-analyzer cargo git-delta 0.19.2 config/Config#file_style.: styles[rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index()."file-style"]rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index().,
319 git_configrust-analyzer cargo git-delta 0.19.2 config/Config#git_config.: opt.git_configrust-analyzer cargo git-delta 0.19.2 cli/Opt#git_config.,
320 grep_context_line_stylerust-analyzer cargo git-delta 0.19.2 config/Config#grep_context_line_style.: styles[rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index()."grep-context-line-style"]rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index().,
321 grep_file_stylerust-analyzer cargo git-delta 0.19.2 config/Config#grep_file_style.: styles[rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index()."grep-file-style"]rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index().,
322 classic_grep_header_file_stylerust-analyzer cargo git-delta 0.19.2 config/Config#classic_grep_header_file_style.: styles[rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index()."classic-grep-header-file-style"]rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index().,
323 classic_grep_header_stylerust-analyzer cargo git-delta 0.19.2 config/Config#classic_grep_header_style.: styles[rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index()."classic-grep-header-style"]rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index().,
324 ripgrep_header_stylerust-analyzer cargo git-delta 0.19.2 config/Config#ripgrep_header_style.: styles[rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index()."ripgrep-header-style"]rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index().,
325 grep_line_number_stylerust-analyzer cargo git-delta 0.19.2 config/Config#grep_line_number_style.: styles[rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index()."grep-line-number-style"]rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index().,
326 grep_match_line_stylerust-analyzer cargo git-delta 0.19.2 config/Config#grep_match_line_style.: styles[rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index()."grep-match-line-style"]rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index().,
327 grep_match_word_stylerust-analyzer cargo git-delta 0.19.2 config/Config#grep_match_word_style.: styles[rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index()."grep-match-word-style"]rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index().,
328 grep_output_typerust-analyzer cargo git-delta 0.19.2 config/Config#grep_output_type.,
329 grep_separator_symbolrust-analyzer cargo git-delta 0.19.2 config/Config#grep_separator_symbol.: opt.grep_separator_symbolrust-analyzer cargo git-delta 0.19.2 cli/Opt#grep_separator_symbol.,
330 handle_merge_conflictsrust-analyzer cargo git-delta 0.19.2 config/Config#handle_merge_conflicts.: !rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().opt.rawrust-analyzer cargo git-delta 0.19.2 cli/Opt#raw.,
331 hostnamerust-analyzer cargo git-delta 0.19.2 config/Config#hostname.: opt.envrust-analyzer cargo git-delta 0.19.2 cli/Opt#env..hostnamerust-analyzer cargo git-delta 0.19.2 env/DeltaEnv#hostname.,
332 hunk_header_file_stylerust-analyzer cargo git-delta 0.19.2 config/Config#hunk_header_file_style.: styles[rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index()."hunk-header-file-style"]rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index().,
333 hunk_header_line_number_stylerust-analyzer cargo git-delta 0.19.2 config/Config#hunk_header_line_number_style.: styles[rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index()."hunk-header-line-number-style"]rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index().,
334 hunk_header_stylerust-analyzer cargo git-delta 0.19.2 config/Config#hunk_header_style.: styles[rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index()."hunk-header-style"]rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index().,
335 hunk_header_style_include_file_pathrust-analyzer cargo git-delta 0.19.2 config/Config#hunk_header_style_include_file_path.: if opt
336 .hunk_header_stylerust-analyzer cargo git-delta 0.19.2 cli/Opt#hunk_header_style.
337 .splitrust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]split().(' ')
338 .anyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#any().(|s| s rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[`&A`][`PartialEq<&B>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[`&A`][`PartialEq<&B>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[`&A`][`PartialEq<&B>`]eq()."file")
339 {
340 HunkHeaderIncludeFilePathrust-analyzer cargo git-delta 0.19.2 config/HunkHeaderIncludeFilePath#::Yesrust-analyzer cargo git-delta 0.19.2 config/HunkHeaderIncludeFilePath#Yes#
341 } else {
342 HunkHeaderIncludeFilePathrust-analyzer cargo git-delta 0.19.2 config/HunkHeaderIncludeFilePath#::Norust-analyzer cargo git-delta 0.19.2 config/HunkHeaderIncludeFilePath#No#
343 },
344 hunk_header_style_include_line_numberrust-analyzer cargo git-delta 0.19.2 config/Config#hunk_header_style_include_line_number.: if opt
345 .hunk_header_stylerust-analyzer cargo git-delta 0.19.2 cli/Opt#hunk_header_style.
346 .splitrust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]split().(' ')
347 .anyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#any().(|s| s rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[`&A`][`PartialEq<&B>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[`&A`][`PartialEq<&B>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[`&A`][`PartialEq<&B>`]eq()."line-number")
348 {
349 HunkHeaderIncludeLineNumberrust-analyzer cargo git-delta 0.19.2 config/HunkHeaderIncludeLineNumber#::Yesrust-analyzer cargo git-delta 0.19.2 config/HunkHeaderIncludeLineNumber#Yes#
350 } else {
351 HunkHeaderIncludeLineNumberrust-analyzer cargo git-delta 0.19.2 config/HunkHeaderIncludeLineNumber#::Norust-analyzer cargo git-delta 0.19.2 config/HunkHeaderIncludeLineNumber#No#
352 },
353 hunk_header_style_include_code_fragmentrust-analyzer cargo git-delta 0.19.2 config/Config#hunk_header_style_include_code_fragment.: if opt
354 .hunk_header_stylerust-analyzer cargo git-delta 0.19.2 cli/Opt#hunk_header_style.
355 .splitrust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]split().(' ')
356 .anyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#any().(|s| s rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[`&A`][`PartialEq<&B>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[`&A`][`PartialEq<&B>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[`&A`][`PartialEq<&B>`]eq()."omit-code-fragment")
357 {
358 HunkHeaderIncludeCodeFragmentrust-analyzer cargo git-delta 0.19.2 config/HunkHeaderIncludeCodeFragment#::Norust-analyzer cargo git-delta 0.19.2 config/HunkHeaderIncludeCodeFragment#No#
359 } else {
360 HunkHeaderIncludeCodeFragmentrust-analyzer cargo git-delta 0.19.2 config/HunkHeaderIncludeCodeFragment#::Yesrust-analyzer cargo git-delta 0.19.2 config/HunkHeaderIncludeCodeFragment#Yes#
361 },
362 hyperlinksrust-analyzer cargo git-delta 0.19.2 config/Config#hyperlinks.: opt.hyperlinksrust-analyzer cargo git-delta 0.19.2 cli/Opt#hyperlinks.,
363 hyperlinks_commit_link_formatrust-analyzer cargo git-delta 0.19.2 config/Config#hyperlinks_commit_link_format.: opt.hyperlinks_commit_link_formatrust-analyzer cargo git-delta 0.19.2 cli/Opt#hyperlinks_commit_link_format.,
364 hyperlinks_file_link_formatrust-analyzer cargo git-delta 0.19.2 config/Config#hyperlinks_file_link_format.: opt.hyperlinks_file_link_formatrust-analyzer cargo git-delta 0.19.2 cli/Opt#hyperlinks_file_link_format.,
365 inspect_raw_linesrust-analyzer cargo git-delta 0.19.2 config/Config#inspect_raw_lines.: opt.computedrust-analyzer cargo git-delta 0.19.2 cli/Opt#computed..inspect_raw_linesrust-analyzer cargo git-delta 0.19.2 cli/ComputedValues#inspect_raw_lines.,
366 inline_hint_stylerust-analyzer cargo git-delta 0.19.2 config/Config#inline_hint_style.: styles[rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index()."inline-hint-style"]rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index().,
367 keep_plus_minus_markersrust-analyzer cargo git-delta 0.19.2 config/Config#keep_plus_minus_markers.: opt.keep_plus_minus_markersrust-analyzer cargo git-delta 0.19.2 cli/Opt#keep_plus_minus_markers.,
368 line_fill_methodrust-analyzer cargo git-delta 0.19.2 config/Config#line_fill_method.: if !rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().opt.computedrust-analyzer cargo git-delta 0.19.2 cli/Opt#computed..stdout_is_termrust-analyzer cargo git-delta 0.19.2 cli/ComputedValues#stdout_is_term. && !rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().TESTINGrust-analyzer cargo git-delta 0.19.2 tests/TESTING. {
369 // Don't write ANSI sequences (which rely on the width of the
370 // current terminal) into a file. Also see UseFullPanelWidth.
371 // But when testing always use given value.
372 BgFillMethodrust-analyzer cargo git-delta 0.19.2 paint/BgFillMethod#::Spacesrust-analyzer cargo git-delta 0.19.2 paint/BgFillMethod#Spaces#
373 } else {
374 line_fill_method
375 },
376 line_numbersrust-analyzer cargo git-delta 0.19.2 config/Config#line_numbers.: opt.line_numbersrust-analyzer cargo git-delta 0.19.2 cli/Opt#line_numbers. && !rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().handlersrust-analyzer cargo git-delta 0.19.2 handlers/::hunkrust-analyzer cargo git-delta 0.19.2 handlers/hunk/::is_word_diffrust-analyzer cargo git-delta 0.19.2 handlers/hunk/is_word_diff().(),
377 line_numbers_formatrust-analyzer cargo git-delta 0.19.2 config/Config#line_numbers_format.: LeftRightrust-analyzer cargo git-delta 0.19.2 features/side_by_side/LeftRight#::newrust-analyzer cargo git-delta 0.19.2 minusplus/impl#[`MinusPlus<T>`]new().(
378 opt.line_numbers_left_formatrust-analyzer cargo git-delta 0.19.2 cli/Opt#line_numbers_left_format.,
379 opt.line_numbers_right_formatrust-analyzer cargo git-delta 0.19.2 cli/Opt#line_numbers_right_format.,
380 ),
381 line_numbers_style_leftrightrust-analyzer cargo git-delta 0.19.2 config/Config#line_numbers_style_leftright.: LeftRightrust-analyzer cargo git-delta 0.19.2 features/side_by_side/LeftRight#::newrust-analyzer cargo git-delta 0.19.2 minusplus/impl#[`MinusPlus<T>`]new().(
382 styles[rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index()."line-numbers-left-style"]rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index().,
383 styles[rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index()."line-numbers-right-style"]rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index().,
384 ),
385 line_numbers_style_minusplusrust-analyzer cargo git-delta 0.19.2 config/Config#line_numbers_style_minusplus.: MinusPlusrust-analyzer cargo git-delta 0.19.2 minusplus/MinusPlus#::newrust-analyzer cargo git-delta 0.19.2 minusplus/impl#[`MinusPlus<T>`]new().(
386 styles[rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index()."line-numbers-minus-style"]rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index().,
387 styles[rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index()."line-numbers-plus-style"]rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index().,
388 ),
389 line_numbers_zero_stylerust-analyzer cargo git-delta 0.19.2 config/Config#line_numbers_zero_style.: styles[rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index()."line-numbers-zero-style"]rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index().,
390 line_buffer_sizerust-analyzer cargo git-delta 0.19.2 config/Config#line_buffer_size.: opt.line_buffer_sizerust-analyzer cargo git-delta 0.19.2 cli/Opt#line_buffer_size.,
391 max_line_distancerust-analyzer cargo git-delta 0.19.2 config/Config#max_line_distance.: opt.max_line_distancerust-analyzer cargo git-delta 0.19.2 cli/Opt#max_line_distance.,
392 max_line_distance_for_naively_paired_linesrust-analyzer cargo git-delta 0.19.2 config/Config#max_line_distance_for_naively_paired_lines.,
393 max_line_lengthrust-analyzer cargo git-delta 0.19.2 config/Config#max_line_length.: if opt.side_by_siderust-analyzer cargo git-delta 0.19.2 cli/Opt#side_by_side. {
394 wrap_config.config_max_line_lengthrust-analyzer cargo git-delta 0.19.2 wrapping/impl#[WrapConfig]config_max_line_length().(
395 opt.max_line_lengthrust-analyzer cargo git-delta 0.19.2 cli/Opt#max_line_length.,
396 opt.computedrust-analyzer cargo git-delta 0.19.2 cli/Opt#computed..available_terminal_widthrust-analyzer cargo git-delta 0.19.2 cli/ComputedValues#available_terminal_width.,
397 )
398 } else {
399 opt.max_line_lengthrust-analyzer cargo git-delta 0.19.2 cli/Opt#max_line_length.
400 },
401 max_syntax_lengthrust-analyzer cargo git-delta 0.19.2 config/Config#max_syntax_length.: opt.max_syntax_lengthrust-analyzer cargo git-delta 0.19.2 cli/Opt#max_syntax_length.,
402 merge_conflict_begin_symbolrust-analyzer cargo git-delta 0.19.2 config/Config#merge_conflict_begin_symbol.: opt.merge_conflict_begin_symbolrust-analyzer cargo git-delta 0.19.2 cli/Opt#merge_conflict_begin_symbol.,
403 merge_conflict_ours_diff_header_stylerust-analyzer cargo git-delta 0.19.2 config/Config#merge_conflict_ours_diff_header_style.: styles[rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index()."merge-conflict-ours-diff-header-style"]rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index().,
404 merge_conflict_theirs_diff_header_stylerust-analyzer cargo git-delta 0.19.2 config/Config#merge_conflict_theirs_diff_header_style.: styles
405 [rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index()."merge-conflict-theirs-diff-header-style"]rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index().,
406 merge_conflict_end_symbolrust-analyzer cargo git-delta 0.19.2 config/Config#merge_conflict_end_symbol.: opt.merge_conflict_end_symbolrust-analyzer cargo git-delta 0.19.2 cli/Opt#merge_conflict_end_symbol.,
407 minus_emph_stylerust-analyzer cargo git-delta 0.19.2 config/Config#minus_emph_style.: styles[rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index()."minus-emph-style"]rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index().,
408 minus_empty_line_marker_stylerust-analyzer cargo git-delta 0.19.2 config/Config#minus_empty_line_marker_style.: styles[rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index()."minus-empty-line-marker-style"]rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index().,
409 minus_filerust-analyzer cargo git-delta 0.19.2 config/Config#minus_file.: opt.minus_filerust-analyzer cargo git-delta 0.19.2 cli/Opt#minus_file.,
410 minus_non_emph_stylerust-analyzer cargo git-delta 0.19.2 config/Config#minus_non_emph_style.: styles[rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index()."minus-non-emph-style"]rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index().,
411 minus_stylerust-analyzer cargo git-delta 0.19.2 config/Config#minus_style.: styles[rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index()."minus-style"]rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index().,
412 navigaterust-analyzer cargo git-delta 0.19.2 config/Config#navigate.: opt.navigaterust-analyzer cargo git-delta 0.19.2 cli/Opt#navigate.,
413 navigate_regexrust-analyzer cargo git-delta 0.19.2 config/Config#navigate_regex.,
414 null_stylerust-analyzer cargo git-delta 0.19.2 config/Config#null_style.: Stylerust-analyzer cargo git-delta 0.19.2 style/Style#::newrust-analyzer cargo git-delta 0.19.2 style/impl#[Style]new().(),
415 null_syntect_stylerust-analyzer cargo git-delta 0.19.2 config/Config#null_syntect_style.: SyntectStylerust-analyzer cargo syntect 5.3.0 highlighting/style/Style#::defaultrust-analyzer cargo syntect 5.3.0 highlighting/style/impl#[Style][Default]default().(),
416 pagerrust-analyzer cargo git-delta 0.19.2 config/Config#pager.: opt.pagerrust-analyzer cargo git-delta 0.19.2 cli/Opt#pager.,
417 paging_moderust-analyzer cargo git-delta 0.19.2 config/Config#paging_mode.: opt.computedrust-analyzer cargo git-delta 0.19.2 cli/Opt#computed..paging_moderust-analyzer cargo git-delta 0.19.2 cli/ComputedValues#paging_mode.,
418 plus_emph_stylerust-analyzer cargo git-delta 0.19.2 config/Config#plus_emph_style.: styles[rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index()."plus-emph-style"]rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index().,
419 plus_empty_line_marker_stylerust-analyzer cargo git-delta 0.19.2 config/Config#plus_empty_line_marker_style.: styles[rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index()."plus-empty-line-marker-style"]rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index().,
420 plus_filerust-analyzer cargo git-delta 0.19.2 config/Config#plus_file.: opt.plus_filerust-analyzer cargo git-delta 0.19.2 cli/Opt#plus_file.,
421 plus_non_emph_stylerust-analyzer cargo git-delta 0.19.2 config/Config#plus_non_emph_style.: styles[rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index()."plus-non-emph-style"]rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index().,
422 plus_stylerust-analyzer cargo git-delta 0.19.2 config/Config#plus_style.: styles[rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index()."plus-style"]rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index().,
423 git_minus_stylerust-analyzer cargo git-delta 0.19.2 config/Config#git_minus_style.: styles[rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index()."git-minus-style"]rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index().,
424 git_plus_stylerust-analyzer cargo git-delta 0.19.2 config/Config#git_plus_style.: styles[rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index()."git-plus-style"]rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index().,
425 relative_pathsrust-analyzer cargo git-delta 0.19.2 config/Config#relative_paths.: opt.relative_pathsrust-analyzer cargo git-delta 0.19.2 cli/Opt#relative_paths.,
426 show_themesrust-analyzer cargo git-delta 0.19.2 config/Config#show_themes.: opt.show_themesrust-analyzer cargo git-delta 0.19.2 cli/Opt#show_themes.,
427 side_by_siderust-analyzer cargo git-delta 0.19.2 config/Config#side_by_side.: opt.side_by_siderust-analyzer cargo git-delta 0.19.2 cli/Opt#side_by_side. && !rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().handlersrust-analyzer cargo git-delta 0.19.2 handlers/::hunkrust-analyzer cargo git-delta 0.19.2 handlers/hunk/::is_word_diffrust-analyzer cargo git-delta 0.19.2 handlers/hunk/is_word_diff().(),
428 side_by_side_datarust-analyzer cargo git-delta 0.19.2 config/Config#side_by_side_data.,
429 styles_maprust-analyzer cargo git-delta 0.19.2 config/Config#styles_map.,
430 syntax_setrust-analyzer cargo git-delta 0.19.2 config/Config#syntax_set.: opt.computedrust-analyzer cargo git-delta 0.19.2 cli/Opt#computed..syntax_setrust-analyzer cargo git-delta 0.19.2 cli/ComputedValues#syntax_set.,
431 syntax_themerust-analyzer cargo git-delta 0.19.2 config/Config#syntax_theme.: opt.computedrust-analyzer cargo git-delta 0.19.2 cli/Opt#computed..syntax_themerust-analyzer cargo git-delta 0.19.2 cli/ComputedValues#syntax_theme.,
432 tab_cfgrust-analyzer cargo git-delta 0.19.2 config/Config#tab_cfg.: utilsrust-analyzer cargo git-delta 0.19.2 utils/::tabsrust-analyzer cargo git-delta 0.19.2 utils/tabs/::TabCfgrust-analyzer cargo git-delta 0.19.2 utils/tabs/TabCfg#::newrust-analyzer cargo git-delta 0.19.2 utils/tabs/impl#[TabCfg]new().(opt.tab_widthrust-analyzer cargo git-delta 0.19.2 cli/Opt#tab_width.),
433 tokenization_regexrust-analyzer cargo git-delta 0.19.2 config/Config#tokenization_regex.,
434 true_colorrust-analyzer cargo git-delta 0.19.2 config/Config#true_color.: opt.computedrust-analyzer cargo git-delta 0.19.2 cli/Opt#computed..true_colorrust-analyzer cargo git-delta 0.19.2 cli/ComputedValues#true_color.,
435 truncation_symbolrust-analyzer cargo git-delta 0.19.2 config/Config#truncation_symbol.: formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("{}→{}", ansirust-analyzer cargo git-delta 0.19.2 ansi/::ANSI_SGR_REVERSErust-analyzer cargo git-delta 0.19.2 ansi/ANSI_SGR_REVERSE., ansirust-analyzer cargo git-delta 0.19.2 ansi/::ANSI_SGR_RESETrust-analyzer cargo git-delta 0.19.2 ansi/ANSI_SGR_RESET.),
436 wrap_configrust-analyzer cargo git-delta 0.19.2 config/Config#wrap_config.,
437 whitespace_error_stylerust-analyzer cargo git-delta 0.19.2 config/Config#whitespace_error_style.: styles[rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index()."whitespace-error-style"]rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index().,
438 zero_stylerust-analyzer cargo git-delta 0.19.2 config/Config#zero_style.: styles[rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index()."zero-style"]rust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/impl#[`HashMap<K, V, S, A>`][`Index<&Q>`]index().,
439 }
440 }
441 }
442
443 fn make_blame_paletterust-analyzer cargo git-delta 0.19.2 config/make_blame_palette().(blame_palette: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>, mode: ColorModerust-analyzer cargo git-delta 0.19.2 color/ColorMode#) -> Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#> {
444 match (blame_palette, mode) {
445 (Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(string), _) => string
446 .split_whitespacerust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]split_whitespace().()
447 .maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#map().(|s| s.to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().())
448 .collectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#collect().::<Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>>(),
449 (Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, ColorModerust-analyzer cargo git-delta 0.19.2 color/ColorMode#::Lightrust-analyzer cargo git-delta 0.19.2 color/ColorMode#Light#) => colorrust-analyzer cargo git-delta 0.19.2 color/::LIGHT_THEME_BLAME_PALETTErust-analyzer cargo git-delta 0.19.2 color/LIGHT_THEME_BLAME_PALETTE.
450 .iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().()
451 .maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#map().(|s| s.to_stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[T][ToString]to_string().())
452 .collectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#collect().::<Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>>(),
453 (Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, ColorModerust-analyzer cargo git-delta 0.19.2 color/ColorMode#::Darkrust-analyzer cargo git-delta 0.19.2 color/ColorMode#Dark#) => colorrust-analyzer cargo git-delta 0.19.2 color/::DARK_THEME_BLAME_PALETTErust-analyzer cargo git-delta 0.19.2 color/DARK_THEME_BLAME_PALETTE.
454 .iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().()
455 .maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#map().(|s| s.to_stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[T][ToString]to_string().())
456 .collectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#collect().::<Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>>(),
457 }
458 }
459
460 /// Did the user supply `option` on the command line?
461 pub fn user_supplied_optionrust-analyzer cargo git-delta 0.19.2 config/user_supplied_option().(option: &str, arg_matches: &claprust-analyzer cargo clap 4.5.60 crate/::ArgMatchesrust-analyzer cargo clap_builder 4.5.60 parser/matches/arg_matches/ArgMatches#) -> bool {
462 arg_matches.value_sourcerust-analyzer cargo clap_builder 4.5.60 parser/matches/arg_matches/impl#[ArgMatches]value_source().(option) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`][`PartialEq<Self>`]eq().Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ValueSourcerust-analyzer cargo clap_builder 4.5.60 parser/matches/value_source/ValueSource#::CommandLinerust-analyzer cargo clap_builder 4.5.60 parser/matches/value_source/ValueSource#CommandLine#)
463 }
464
465 pub fn delta_unreachablerust-analyzer cargo git-delta 0.19.2 config/delta_unreachable().(message: &str) -> ! {
466 fatalrust-analyzer cargo git-delta 0.19.2 fatal().(formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!(
467 "{message} This should not be possible. \
468 Please report the bug at https://github.com/dandavison/delta/issues.",
469 ));
470 }
471
472 #[cfg(test)]
473 // Usual length of the header returned by `run_delta()`, often `skip()`-ed.
474 pub const HEADER_LENrust-analyzer cargo git-delta 0.19.2 config/HEADER_LEN.: usize = 7;
475
476 #[cfg(test)]
477 pub mod testsrust-analyzer cargo git-delta 0.19.2 config/tests/ {
478 use craterust-analyzer cargo git-delta 0.19.2 crate/::clirust-analyzer cargo git-delta 0.19.2 cli/;
479 use craterust-analyzer cargo git-delta 0.19.2 crate/::testsrust-analyzer cargo git-delta 0.19.2 tests/::integration_test_utilsrust-analyzer cargo git-delta 0.19.2 tests/integration_test_utils/;
480 use craterust-analyzer cargo git-delta 0.19.2 crate/::utilsrust-analyzer cargo git-delta 0.19.2 utils/::batrust-analyzer cargo git-delta 0.19.2 utils/bat/::outputrust-analyzer cargo git-delta 0.19.2 utils/bat/output/::PagingModerust-analyzer cargo git-delta 0.19.2 utils/bat/output/PagingMode#;
481 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::fsrust-analyzer cargo std https://github.com/rust-lang/rust/library/std fs/::remove_filerust-analyzer cargo std https://github.com/rust-lang/rust/library/std fs/remove_file().;
482
483 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
484 fn test_get_computed_values_from_configrust-analyzer cargo git-delta 0.19.2 config/tests/test_get_computed_values_from_config().() {
485 let git_config_contents = b"
486 [delta]
487 true-color = never
488 width = 100
489 inspect-raw-lines = true
490 paging = never
491 syntax-theme = None
492 ";
493 let git_config_path = "delta__test_get_true_color_from_config.gitconfig";
494 let config = integration_test_utilsrust-analyzer cargo git-delta 0.19.2 tests/integration_test_utils/::make_config_from_args_and_git_configrust-analyzer cargo git-delta 0.19.2 tests/integration_test_utils/make_config_from_args_and_git_config().(
495 &[],
496 Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(git_config_contents),
497 Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(git_config_path),
498 );
499 assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(!rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().config.true_colorrust-analyzer cargo git-delta 0.19.2 config/Config#true_color.);
500 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(config.decorations_widthrust-analyzer cargo git-delta 0.19.2 config/Config#decorations_width., clirust-analyzer cargo git-delta 0.19.2 cli/::Widthrust-analyzer cargo git-delta 0.19.2 cli/Width#::Fixedrust-analyzer cargo git-delta 0.19.2 cli/Width#Fixed#(100));
501 assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(config.background_color_extends_to_terminal_widthrust-analyzer cargo git-delta 0.19.2 config/Config#background_color_extends_to_terminal_width.);
502 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(config.inspect_raw_linesrust-analyzer cargo git-delta 0.19.2 config/Config#inspect_raw_lines., clirust-analyzer cargo git-delta 0.19.2 cli/::InspectRawLinesrust-analyzer cargo git-delta 0.19.2 cli/InspectRawLines#::Truerust-analyzer cargo git-delta 0.19.2 cli/InspectRawLines#True#);
503 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(config.paging_moderust-analyzer cargo git-delta 0.19.2 config/Config#paging_mode., PagingModerust-analyzer cargo git-delta 0.19.2 utils/bat/output/PagingMode#::Neverrust-analyzer cargo git-delta 0.19.2 utils/bat/output/PagingMode#Never#);
504 assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(config.syntax_themerust-analyzer cargo git-delta 0.19.2 config/Config#syntax_theme..is_nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]is_none().());
505 // syntax_set doesn't depend on gitconfig.
506 remove_filerust-analyzer cargo std https://github.com/rust-lang/rust/library/std fs/remove_file().(git_config_path).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().();
507 }
508 }