Home
last modified time | relevance | path

Searched refs:as_str (Results 1 – 25 of 147) sorted by relevance

123456

/external/rust/crates/clap/src/completions/
Dfish.rs51 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 …]
Delvish.rs86 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()
Dpowershell.rs98 .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/
Dkey.rs48 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/
Dkernel_cmdline.rs137 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/
Dunit.rs27 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/
Dio_read_line.rs45 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/
Decdsa_tests.rs49 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/
Dimporter.py135 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/
Dmacros.rs45 if let Some(s) = ys.as_str() {
52 if let Some(s) = $v.as_str() {
70 $v.as_str()
82 $v.as_str()
Dgroup.rs468 .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/
Dcsv_report.rs33 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/
Dtext.rs22 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/
Dcompat.py114 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/
Dpartial_eq.rs21 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/
Dmod.rs93 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/
Dttf.rs54 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()
Dnaive.rs22 family.as_str().into(), in new()
23 style.as_str().into(), in new()
Dweb.rs27 family.as_str().into(), in new()
28 style.as_str().into(), in new()
/external/rust/crates/once_cell/examples/
Dregex.rs21 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/
Dsmall_cstr.rs25 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/
Dfrom_sql.rs152 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()
Dchrono.rs22 .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/
Dre_unicode.rs58 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/
Ddigest_scalar.rs99 let (ops, digest_alg) = match (curve_name.as_str(), digest_name.as_str()) { in test()

123456