/third_party/rust/crates/clap/src/builder/ |
D | str.rs | 36 pub fn as_str(&self) -> &str { in as_str() method 37 self.name.as_str() in as_str() 57 Self::from_ref(name.as_str()) in from() 100 std::fmt::Display::fmt(self.as_str(), f) in fmt() 107 std::fmt::Debug::fmt(self.as_str(), f) in fmt() 116 self.as_str() in deref() 123 self.as_str() in as_ref() 151 self.as_str() in borrow() 158 PartialEq::eq(self.as_str(), other) in eq() 164 PartialEq::eq(self, other.as_str()) in eq() [all …]
|
/third_party/rust/crates/clap/src/util/ |
D | id.rs | 21 pub fn as_str(&self) -> &str { in as_str() method 22 self.0.as_str() in as_str() 89 std::fmt::Display::fmt(self.as_str(), f) in fmt() 96 std::fmt::Debug::fmt(self.as_str(), f) in fmt() 103 self.as_str() in as_ref() 110 self.as_str() in borrow() 117 PartialEq::eq(self.as_str(), other) in eq() 123 PartialEq::eq(self, other.as_str()) in eq() 130 PartialEq::eq(self.as_str(), *other) in eq() 136 PartialEq::eq(*self, other.as_str()) in eq() [all …]
|
/third_party/rust/crates/rustix/tests/path/ |
D | arg.rs | 16 assert_eq!("hello", t.as_str().unwrap()); in test_arg() 22 assert_eq!("hello", Arg::as_str(&t).unwrap()); in test_arg() 28 assert_eq!("hello", t.as_str().unwrap()); in test_arg() 34 assert_eq!("hello", t.as_str().unwrap()); in test_arg() 40 assert_eq!("hello", t.as_str().unwrap()); in test_arg() 46 assert_eq!("hello", t.as_str().unwrap()); in test_arg() 52 assert_eq!("hello", t.as_str().unwrap()); in test_arg() 58 assert_eq!("hello", t.as_str().unwrap()); in test_arg() 67 assert_eq!("hello", t.as_str().unwrap()); in test_arg() 73 assert_eq!("hello", t.as_str().unwrap()); in test_arg() [all …]
|
/third_party/rust/crates/clap/tests/builder/ |
D | multiple_values.rs | 25 .map(|v| v.as_str()) in option_long() 51 .map(|v| v.as_str()) in option_short() 80 .map(|v| v.as_str()) in option_mixed() 107 .map(|v| v.as_str()) in option_exact_exact() 131 .map(|v| v.as_str()) in option_exact_exact_not_mult() 158 .map(|v| v.as_str()) in option_exact_exact_mult() 217 .map(|v| v.as_str()) in option_min_exact() 260 .map(|v| v.as_str()) in option_short_min_more_mult_occurs() 264 assert_eq!(m.get_one::<String>("arg").map(|v| v.as_str()), Some("pos")); in option_short_min_more_mult_occurs() 287 .map(|v| v.as_str()) in option_short_min_more_single_occur() [all …]
|
D | opts.rs | 54 assert_eq!(m.get_one::<String>("cmd").map(|v| v.as_str()), Some("cmd")); in require_equals_min_values_zero() 69 res.unwrap().get_one::<String>("cfg").map(|v| v.as_str()), in double_hyphen_as_value() 124 assert_eq!(m.get_one::<String>("f").map(|v| v.as_str()).unwrap(), "-"); in stdin_char() 139 m.get_one::<String>("f").map(|v| v.as_str()).unwrap(), in opts_using_short() 144 m.get_one::<String>("c").map(|v| v.as_str()).unwrap(), in opts_using_short() 201 m.get_one::<String>("flag").map(|v| v.as_str()).unwrap(), in opts_using_long_space() 206 m.get_one::<String>("color").map(|v| v.as_str()).unwrap(), in opts_using_long_space() 223 m.get_one::<String>("flag").map(|v| v.as_str()).unwrap(), in opts_using_long_equals() 228 m.get_one::<String>("color").map(|v| v.as_str()).unwrap(), in opts_using_long_equals() 245 m.get_one::<String>("flag").map(|v| v.as_str()).unwrap(), in opts_using_mixed() [all …]
|
D | default_vals.rs | 25 m.get_one::<String>("o").map(|v| v.as_str()).unwrap(), in opts() 71 m.get_one::<String>("opt").map(|v| v.as_str()).unwrap(), in opt_user_override() 89 m.get_one::<String>("arg").map(|v| v.as_str()).unwrap(), in positionals() 107 m.get_one::<String>("arg").map(|v| v.as_str()).unwrap(), in positional_user_override() 126 m.get_one::<String>("o").map(|v| v.as_str()).unwrap(), in osstr_opts() 143 m.get_one::<String>("opt").map(|v| v.as_str()).unwrap(), in osstr_opt_user_override() 160 m.get_one::<String>("arg").map(|v| v.as_str()).unwrap(), in osstr_positionals() 177 m.get_one::<String>("arg").map(|v| v.as_str()).unwrap(), in osstr_positional_user_override() 198 m.get_one::<String>("arg").map(|v| v.as_str()).unwrap(), in default_if_arg_present_no_default() 217 m.get_one::<String>("arg").map(|v| v.as_str()).unwrap(), in default_if_arg_present_no_default_user_override() [all …]
|
D | app_settings.rs | 203 m.unwrap().get_one::<String>("some").map(|v| v.as_str()), in infer_subcommands_fail_with_args() 218 m.unwrap().get_one::<String>("some").map(|v| v.as_str()), in infer_subcommands_fail_with_args2() 291 .map(|v| v.as_str()) in no_bin_name() 339 .map(|v| v.as_str()) in stop_delim_values_only_pos_follows() 356 .map(|v| v.as_str()) in dont_delim_values_trailingvararg() 374 .map(|v| v.as_str()) in delim_values_only_pos_follows() 390 .map(|v| v.as_str()) in delim_values_trailingvararg() 411 .map(|v| v.as_str()) in delim_values_only_pos_follows_with_delim() 431 .map(|v| v.as_str()) in delim_values_trailingvararg_with_delim() 448 m.get_one::<String>("some").map(|v| v.as_str()).unwrap(), in leading_hyphen_short() [all …]
|
D | default_missing_vals.rs | 19 m.get_one::<String>("color").map(|v| v.as_str()).unwrap(), in opt_missing() 45 m.get_one::<String>("color").map(|v| v.as_str()).unwrap(), in opt_present_with_missing_value() 71 m.get_one::<String>("color").map(|v| v.as_str()).unwrap(), in opt_present_with_value() 96 m.get_one::<String>("color").map(|v| v.as_str()).unwrap(), in opt_present_with_empty_value() 122 m.get_one::<String>("o").map(|v| v.as_str()).unwrap(), in opt_default() 141 m.get_one::<String>("o").map(|v| v.as_str()).unwrap(), in opt_default_user_override() 161 .map(|v| v.as_str()) in default_missing_value_per_occurrence() 182 m.get_one::<String>("flag").map(|v| v.as_str()), in default_missing_value_flag_value() 196 m.get_one::<String>("flag").map(|v| v.as_str()), in default_missing_value_flag_value() 210 m.get_one::<String>("flag").map(|v| v.as_str()), in default_missing_value_flag_value() [all …]
|
D | global_args.rs | 49 .map(|v| v.as_str()) in propagate_global_arg_in_subcommand_to_subsubcommand_1385() 82 .map(|v| v.as_str()) in propagate_global_arg_to_subcommand_in_subsubcommand_2053() 149 m.get_one::<String>("name").unwrap().as_str(), in global_overrides_default() 157 assert_eq!(m.get_one::<String>("name").unwrap().as_str(), "from_arg"); in global_overrides_default() 163 assert_eq!(m.get_one::<String>("name").unwrap().as_str(), "from_arg"); in global_overrides_default() 169 assert_eq!(m.get_one::<String>("name").unwrap().as_str(), "from_arg"); in global_overrides_default() 188 assert_eq!(m.get_one::<String>("name").unwrap().as_str(), "from_env"); in global_overrides_env() 194 assert_eq!(m.get_one::<String>("name").unwrap().as_str(), "from_arg"); in global_overrides_env() 200 assert_eq!(m.get_one::<String>("name").unwrap().as_str(), "from_arg"); in global_overrides_env() 206 assert_eq!(m.get_one::<String>("name").unwrap().as_str(), "from_arg"); in global_overrides_env()
|
D | env.rs | 28 m.get_one::<String>("arg").map(|v| v.as_str()).unwrap(), in env() 85 m.get_one::<String>("arg").map(|v| v.as_str()).unwrap(), in env_os() 108 assert_eq!(m.get_one::<String>("arg").map(|v| v.as_str()), None); in no_env() 125 assert_eq!(m.get_one::<String>("arg").map(|v| v.as_str()), None); in no_env_no_takes_value() 149 m.get_one::<String>("arg").map(|v| v.as_str()).unwrap(), in with_default() 174 m.get_one::<String>("arg").map(|v| v.as_str()).unwrap(), in opt_user_override() 182 .map(|v| v.as_str()) in opt_user_override() 207 m.get_one::<String>("arg").map(|v| v.as_str()).unwrap(), in positionals() 232 m.get_one::<String>("arg").map(|v| v.as_str()).unwrap(), in positionals_user_override() 240 .map(|v| v.as_str()) in positionals_user_override() [all …]
|
D | tests.rs | 104 if let Some(v) = matches.get_one::<String>("option").map(|v| v.as_str()) { in check_complex_output() 116 if let Some(p) = matches.get_one::<String>("positional").map(|v| v.as_str()) { in check_complex_output() 129 .map(|v| v.as_str()) in check_complex_output() 138 .map(|v| v.as_str()) in check_complex_output() 149 .map(|v| v.as_str()) in check_complex_output() 158 .map(|v| v.as_str()) in check_complex_output() 166 .map(|v| v.as_str()) in check_complex_output() 176 .map(|v| v.as_str()) in check_complex_output() 185 if let Some(v) = matches.get_one::<String>("option").map(|v| v.as_str()) { in check_complex_output() 197 if let Some(p) = matches.get_one::<String>("positional").map(|v| v.as_str()) { in check_complex_output() [all …]
|
D | delimiters.rs | 14 m.get_one::<String>("option").map(|v| v.as_str()).unwrap(), in opt_default_no_delim() 30 m.get_one::<String>("option").map(|v| v.as_str()).unwrap(), in opt_eq_no_delim() 46 m.get_one::<String>("option").map(|v| v.as_str()).unwrap(), in opt_s_eq_no_delim() 62 m.get_one::<String>("option").map(|v| v.as_str()).unwrap(), in opt_s_default_no_delim() 78 m.get_one::<String>("option").map(|v| v.as_str()).unwrap(), in opt_s_no_space_no_delim() 99 m.get_one::<String>("option").map(|v| v.as_str()).unwrap(), in opt_s_no_space_mult_no_delim() 123 .map(|v| v.as_str()) in opt_eq_mult_def_delim()
|
D | ignore_errors.rs | 48 m.get_one::<String>("config").map(|v| v.as_str()), in multiple_args_and_final_arg_without_value() 52 assert_eq!(m.get_one::<String>("stuff").map(|v| v.as_str()), None); in multiple_args_and_final_arg_without_value() 75 m.get_one::<String>("config").map(|v| v.as_str()), in multiple_args_and_intermittent_arg_without_value() 79 assert_eq!(m.get_one::<String>("stuff").map(|v| v.as_str()), None); in multiple_args_and_intermittent_arg_without_value() 121 assert_eq!(sub_m.get_one::<String>("test").map(|v| v.as_str()), None); in subcommand() 123 sub_m.get_one::<String>("stuff").map(|v| v.as_str()), in subcommand()
|
D | arg_matches.rs | 13 m.ids().map(|id| id.as_str()).collect::<Vec<_>>(), in ids() 27 m.ids().map(|id| id.as_str()).collect::<Vec<_>>(), in ids_ignore_unused() 44 assert_eq!(m.ids().map(|id| id.as_str()).collect::<Vec<_>>(), ["color"]); in ids_ignore_overridden() 70 assert_eq!(m.get_one::<String>("opt").map(|v| v.as_str()), Some("val")); in arg_matches_value_of_wrong_arg() 71 m.get_one::<String>("o").map(|v| v.as_str()); in arg_matches_value_of_wrong_arg()
|
D | positionals.rs | 13 m.get_one::<String>("arg").map(|v| v.as_str()).unwrap(), in only_pos_follow() 36 .map(|v| v.as_str()) in issue_946() 54 .map(|v| v.as_str()) in positional() 70 .map(|v| v.as_str()) in positional() 134 .map(|v| v.as_str()) in positional_multiple() 158 .map(|v| v.as_str()) in positional_multiple_3() 189 .map(|v| v.as_str()) in positional_possible_values() 286 .map(|v| v.as_str()) in last_positional() 354 matches.get_one::<String>("name").map(|v| v.as_str()), in ignore_hyphen_values_on_last()
|
D | possible_values.rs | 17 m.get_one::<String>("positional").map(|v| v.as_str()), in possible_values_of_positional() 39 m.get_one::<String>("arg_value").map(|v| v.as_str()), in possible_value_arg_value() 73 .map(|v| v.as_str()) in possible_values_of_positional_multiple() 112 m.get_one::<String>("option").map(|v| v.as_str()), in possible_values_of_option() 153 .map(|v| v.as_str()) in possible_values_of_option_multiple() 366 .map(|v| v.as_str()) in alias() 391 .map(|v| v.as_str()) in aliases() 413 .map(|v| v.as_str()) in ignore_case() 453 .map(|v| v.as_str()) in ignore_case_multiple()
|
D | arg_aliases_short.rs | 20 a.get_one::<String>("alias").map(|v| v.as_str()).unwrap(), in single_short_alias_of_option() 58 .map(|v| v.as_str()) in multiple_short_aliases_of_option() 64 .map(|v| v.as_str()) in multiple_short_aliases_of_option() 70 .map(|v| v.as_str()) in multiple_short_aliases_of_option() 76 .map(|v| v.as_str()) in multiple_short_aliases_of_option() 153 sub_m.get_one::<String>("test").map(|v| v.as_str()).unwrap(), in short_alias_on_a_subcommand_option()
|
D | arg_aliases.rs | 20 a.get_one::<String>("alias").map(|v| v.as_str()).unwrap(), in single_alias_of_option() 64 .map(|v| v.as_str()) in multiple_aliases_of_option() 70 .map(|v| v.as_str()) in multiple_aliases_of_option() 76 .map(|v| v.as_str()) in multiple_aliases_of_option() 82 .map(|v| v.as_str()) in multiple_aliases_of_option() 186 sub_m.get_one::<String>("test").map(|v| v.as_str()).unwrap(), in alias_on_a_subcommand_option()
|
/third_party/rust/crates/clap/clap_complete/src/shells/ |
D | fish.rs | 79 .as_str(), 90 template.push_str(format!(" -s {}", short).as_str()); 96 template.push_str(format!(" -l {}", escape_string(long, false)).as_str()); 102 .push_str(format!(" -d '{}'", escape_string(&data.to_string(), false)).as_str()); 105 template.push_str(value_completion(option).as_str()); 107 buffer.push_str(template.as_str()); 116 template.push_str(format!(" -s {}", short).as_str()); 122 template.push_str(format!(" -l {}", escape_string(long, false)).as_str()); 128 .push_str(format!(" -d '{}'", escape_string(&data.to_string(), false)).as_str()); 131 buffer.push_str(template.as_str()); [all …]
|
D | powershell.rs | 96 .as_str(), in generate_inner() 110 .as_str(), in generate_inner() 126 .as_str(), in generate_inner() 140 .as_str(), in generate_inner() 156 .as_str(), in generate_inner()
|
D | elvish.rs | 86 completions.push_str(format!("-{} '{}'", short, tooltip).as_str()); in generate_inner() 94 completions.push_str(format!("--{} '{}'", long, tooltip).as_str()); in generate_inner() 104 completions.push_str(format!("-{} '{}'", short, tooltip).as_str()); in generate_inner() 112 completions.push_str(format!("--{} '{}'", long, tooltip).as_str()); in generate_inner() 122 completions.push_str(format!("{} '{}'", data, tooltip).as_str()); in generate_inner()
|
/third_party/rust/crates/log/src/kv/ |
D | key.rs | 48 pub fn as_str(&self) -> &str { in as_str() method 70 self.as_str().hash(state) in hash() 76 self.as_str().eq(other.as_str()) in eq() 84 self.as_str().partial_cmp(other.as_str()) in partial_cmp() 90 self.as_str().cmp(other.as_str()) in cmp() 96 self.as_str() in as_ref() 102 self.as_str() in borrow() 170 assert_eq!("a key", Key::from_str("a key").as_str()); in key_from_string()
|
/third_party/ninja/src/ |
D | msvc_helper_main-win32.cc | 42 const char* as_str = env_block.c_str(); in PushPathIntoEnvironment() local 43 while (as_str[0]) { in PushPathIntoEnvironment() 44 if (_strnicmp(as_str, "path=", 5) == 0) { in PushPathIntoEnvironment() 45 _putenv(as_str); in PushPathIntoEnvironment() 48 as_str = &as_str[strlen(as_str) + 1]; in PushPathIntoEnvironment()
|
/third_party/rust/crates/rustix/src/path/ |
D | arg.rs | 70 fn as_str(&self) -> io::Result<&str>; in as_str() method 94 fn as_str(&self) -> io::Result<&str> { in as_str() method 132 fn as_str(&self) -> io::Result<&str> { in as_str() method 144 CString::new(String::as_str(self)).map_err(|_cstr_err| io::Errno::INVAL)?, in as_cow_c_str() 153 self.as_str().into_c_str() in into_c_str() 168 fn as_str(&self) -> io::Result<&str> { in as_str() method 180 CString::new(self.as_str()).map_err(|_cstr_err| io::Errno::INVAL)?, in as_cow_c_str() 207 fn as_str(&self) -> io::Result<&str> { in as_str() method 246 fn as_str(&self) -> io::Result<&str> { in as_str() method 284 fn as_str(&self) -> io::Result<&str> { in as_str() method [all …]
|
/third_party/rust/crates/clap/examples/ |
D | pacman.rs | 78 .map(|s| s.as_str()) in main() 88 .map(|s| s.as_str()) in main() 100 let comma_sep = packages.map(|s| s.as_str()).collect::<Vec<_>>().join(", "); in main() 103 let comma_sep = queries.map(|s| s.as_str()).collect::<Vec<_>>().join(", "); in main()
|