/external/rust/crates/clap/src/completions/ |
D | fish.rs | 51 basic_template.push_str(format!("\"__fish_seen_subcommand_from {}\"", subcommand).as_str()); 57 template.push_str(format!(" -s {}", data).as_str()); 60 template.push_str(format!(" -l {}", data).as_str()); 63 template.push_str(format!(" -d '{}'", escape_string(data)).as_str()); 66 template.push_str(format!(" -r -f -a \"{}\"", data.join(" ")).as_str()); 68 buffer.push_str(template.as_str()); 75 template.push_str(format!(" -s {}", data).as_str()); 78 template.push_str(format!(" -l {}", data).as_str()); 81 template.push_str(format!(" -d '{}'", escape_string(data)).as_str()); 83 buffer.push_str(template.as_str()); [all …]
|
D | elvish.rs | 86 completions.push_str(format!("-{} '{}'", data, tooltip).as_str()); in generate_inner() 91 completions.push_str(format!("--{} '{}'", data, tooltip).as_str()); in generate_inner() 99 completions.push_str(format!("-{} '{}'", data, tooltip).as_str()); in generate_inner() 104 completions.push_str(format!("--{} '{}'", data, tooltip).as_str()); in generate_inner() 112 completions.push_str(format!("{} '{}'", data, tooltip).as_str()); in generate_inner()
|
D | powershell.rs | 98 .as_str(), in generate_inner() 109 .as_str(), in generate_inner() 123 .as_str(), in generate_inner() 134 .as_str(), in generate_inner() 148 .as_str(), in generate_inner()
|
/external/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()
|
/external/crosvm/kernel_cmdline/src/ |
D | kernel_cmdline.rs | 137 pub fn as_str(&self) -> &str { in as_str() method 138 self.line.as_str() in as_str() 156 assert_eq!(cl.as_str(), ""); in insert_hello_world() 158 assert_eq!(cl.as_str(), "hello=world"); in insert_hello_world() 169 assert_eq!(cl.as_str(), "hello=world foo=bar"); in insert_multi() 179 assert_eq!(cl.as_str(), ""); in insert_space() 190 assert_eq!(cl.as_str(), ""); in insert_equals() 198 assert_eq!(cl.as_str(), ""); in insert_emoji() 204 assert_eq!(cl.as_str(), ""); in insert_string() 206 assert_eq!(cl.as_str(), "noapic"); in insert_string() [all …]
|
/external/rust/crates/url/tests/ |
D | unit.rs | 27 assert_eq!(url.as_str(), "sc://%C3%B1/resources/testharness.js"); in test_relative() 34 assert_eq!(url.as_str(), "sc://%C3%B1"); in test_relative_empty() 41 assert_eq!(base.as_str(), "moz://:bar@servo/baz"); in test_set_empty_host() 43 assert_eq!(base.as_str(), "moz:/baz"); in test_set_empty_host() 45 assert_eq!(base.as_str(), "moz://servo/baz"); in test_set_empty_host() 63 assert_eq!(base.as_str(), "moz:///baz"); in test_set_empty_hostname() 160 assert_eq!(special_url.as_str(), "http://foobar.com/foo%5Cbar"); in path_backslash_fun() 164 assert_eq!(nonspecial_url.as_str(), "thing://foobar.com/foo\\bar"); in path_backslash_fun() 181 url.as_str(), in parse_with_params() 334 assert_eq!(url.as_str(), result); in test_serialization() [all …]
|
/external/rust/crates/tokio/tests/ |
D | io_read_line.rs | 45 assert_eq!(line.as_str(), "We say Hello World\n"); in read_line_not_all_ready() 50 assert_eq!(line.as_str(), "I solve FizzBuzz\n"); in read_line_not_all_ready() 55 assert_eq!(line.as_str(), "1\n"); in read_line_not_all_ready() 60 assert_eq!(line.as_str(), "2"); in read_line_not_all_ready() 73 assert_eq!(line.as_str(), "Foo"); in read_line_invalid_utf8() 89 assert_eq!(line.as_str(), "FooHello Wor"); in read_line_fail() 106 assert_eq!(line.as_str(), "Foo"); in read_line_fail_and_utf8_fail()
|
/external/rust/crates/ring/tests/ |
D | ecdsa_tests.rs | 49 let ((this_fixed, this_asn1), (other_fixed, other_asn1)) = match curve_name.as_str() { in ecdsa_from_pkcs8_test() 143 let alg = match (curve_name.as_str(), digest_name.as_str()) { in signature_ecdsa_verify_asn1_test() 177 let alg = match (curve_name.as_str(), digest_name.as_str()) { in signature_ecdsa_verify_fixed_test() 251 let (signing_alg, verification_alg) = match (curve_name.as_str(), digest_name.as_str()) in signature_ecdsa_sign_fixed_sign_and_verify_test() 305 let (signing_alg, verification_alg) = match (curve_name.as_str(), digest_name.as_str()) in signature_ecdsa_sign_asn1_test()
|
/external/tensorflow/tensorflow/python/framework/ |
D | importer.py | 135 return tuple(compat.as_str(x) for x in return_elements) 212 input_src = compat.as_str(input_src) 214 src_name = compat.as_str(input_src[1:]) 220 src_name = compat.as_str(src_name) 227 op_name = compat.as_str(op_name) 231 compat.as_str(name)) 299 val = compat.as_str(val) 527 compat.as_str(s) for s in missing_unused_input_keys
|
/external/rust/crates/clap/src/args/ |
D | macros.rs | 45 if let Some(s) = ys.as_str() { 52 if let Some(s) = $v.as_str() { 70 $v.as_str() 82 $v.as_str()
|
D | group.rs | 468 .as_str() in from() 480 a = match k.as_str().unwrap() { in from() 485 if let Some(ys) = v.as_str() { in from() 493 if let Some(ys) = v.as_str() { in from()
|
/external/rust/crates/criterion/src/ |
D | csv_report.rs | 33 let group = id.group_id.as_str(); in write_data() 34 let function = id.function_id.as_ref().map(String::as_str); in write_data() 35 let value = id.value_str.as_ref().map(String::as_str); in write_data() 41 let throughput_num = throughput_num.as_ref().map(String::as_str); in write_data()
|
/external/rust/crates/plotters-backend/src/ |
D | text.rs | 22 pub fn as_str(&self) -> &str { in as_str() method 34 match from.to_lowercase().as_str() { in from() 171 pub fn as_str(&self) -> &str { in as_str() method 183 match from.to_lowercase().as_str() { in from()
|
/external/tensorflow/tensorflow/python/util/ |
D | compat.py | 114 def as_str(bytes_or_text, encoding='utf-8'): function 122 tf_export('compat.as_str')(as_str) 139 return as_str(value)
|
/external/rust/crates/serde_json/src/value/ |
D | partial_eq.rs | 21 value.as_str().map_or(false, |i| i == other) in eq_str() 50 eq_str(self, other.as_str()) in eq() 56 eq_str(other, self.as_str()) in eq()
|
/external/rust/crates/clap/src/app/ |
D | mod.rs | 93 self.p.meta.bin_name.as_ref().map(|s| s.as_str()) in get_bin_name() 1656 let mut a = if let Some(name) = yaml["name"].as_str() { in from() 1662 App::new(sc_key.as_str().unwrap()) in from() 1668 if let Some(v) = $y[stringify!($i)].as_str() { in from() 1705 if let Some(v) = yaml["setting"].as_str() { in from() 1715 if let Some(s) = ys.as_str() { in from() 1719 } else if let Some(v) = yaml["settings"].as_str() { in from() 1727 if let Some(v) = yaml["global_setting"].as_str() { in from() 1737 if let Some(s) = ys.as_str() { in from() 1741 } else if let Some(v) = yaml["global_settings"].as_str() { in from() [all …]
|
/external/rust/crates/plotters/src/style/font/ |
D | ttf.rs | 54 FontStyle::Normal => Cow::Borrowed(face.as_str()), in load_font_data() 55 _ => Cow::Owned(format!("{}, {}", face.as_str(), style.as_str())), in load_font_data() 79 || FontError::NoSuchFont(face.as_str().to_owned(), style.as_str().to_owned()); in load_font_data()
|
D | naive.rs | 22 family.as_str().into(), in new() 23 style.as_str().into(), in new()
|
D | web.rs | 27 family.as_str().into(), in new() 28 style.as_str().into(), in new()
|
/external/rust/crates/once_cell/examples/ |
D | regex.rs | 21 let size = usize::from_str(re.captures(s).unwrap().get(7).unwrap().as_str()).unwrap(); in slow() 35 let size = usize::from_str(re.captures(s).unwrap().get(7).unwrap().as_str()).unwrap(); in fast()
|
/external/rust/crates/rusqlite/src/util/ |
D | small_cstr.rs | 25 pub fn as_str(&self) -> &str { in as_str() method 97 f.debug_tuple("SmallCString").field(&self.as_str()).finish() in fmt() 126 self.as_str() in borrow()
|
/external/rust/crates/rusqlite/src/types/ |
D | from_sql.rs | 152 value.as_str().map(ToString::to_string) in column_result() 158 value.as_str().map(Into::into) in column_result() 164 value.as_str().map(Into::into) in column_result() 170 value.as_str().map(Into::into) in column_result()
|
D | chrono.rs | 22 .as_str() in column_result() 41 value.as_str().and_then(|s| { in column_result() 69 value.as_str().and_then(|s| { in column_result() 97 let s = value.as_str()?; in column_result()
|
/external/rust/crates/regex/src/ |
D | re_unicode.rs | 58 pub fn as_str(&self) -> &'t str { in as_str() method 71 m.as_str() in from() 142 write!(f, "{}", self.as_str()) in fmt() 715 pub fn as_str(&self) -> &str { in as_str() method 1046 .map(|m| m.as_str()) in index() 1068 .map(|m| m.as_str()) in index() 1227 self.as_str().replace_append(caps, dst) in replace_append() 1237 self.as_str().replace_append(caps, dst) in replace_append()
|
/external/rust/crates/ring/src/ec/suite_b/ecdsa/ |
D | digest_scalar.rs | 99 let (ops, digest_alg) = match (curve_name.as_str(), digest_name.as_str()) { in test()
|