Home
last modified time | relevance | path

Searched refs:to_owned (Results 1 - 25 of 127) sorted by relevance

123456

/third_party/rust/crates/rustix/tests/path/
H A Darg.rs17 assert_eq!("hello".to_owned(), Arg::to_string_lossy(&t)); in test_arg()
21 let t: String = "hello".to_owned(); in test_arg()
23 assert_eq!("hello".to_owned(), Arg::to_string_lossy(&t)); in test_arg()
29 assert_eq!("hello".to_owned(), Arg::to_string_lossy(&t)); in test_arg()
33 let t: OsString = OsString::from("hello".to_owned()); in test_arg()
35 assert_eq!("hello".to_owned(), Arg::to_string_lossy(&t)); in test_arg()
41 assert_eq!("hello".to_owned(), Arg::to_string_lossy(&t)); in test_arg()
45 let t: PathBuf = PathBuf::from("hello".to_owned()); in test_arg()
47 assert_eq!("hello".to_owned(), Arg::to_string_lossy(&t)); in test_arg()
53 assert_eq!("hello".to_owned(), Ar in test_arg()
[all...]
/third_party/rust/crates/rust-openssl/openssl/src/
H A Ddsa.rs67 (**self).to_owned() in clone()
74 fn to_owned(&self) -> Dsa<T> { in to_owned() functions
594 let p = params.p().to_owned().unwrap(); in test_params()
595 let q = params.q().to_owned().unwrap(); in test_params()
596 let g = params.g().to_owned().unwrap(); in test_params()
599 key.p().to_owned().unwrap(), in test_params()
600 key.q().to_owned().unwrap(), in test_params()
601 key.g().to_owned().unwrap(), in test_params()
623 BigNumRef::to_owned(p).unwrap(), in test_signature()
624 BigNumRef::to_owned( in test_signature()
[all...]
H A Ddh.rs373 prime_p.to_owned().unwrap(), in test_dh_params()
374 generator.to_owned().unwrap(), in test_dh_params()
375 prime_q.to_owned().unwrap(), in test_dh_params()
393 .set_private_key(key1.private_key().to_owned().unwrap()) in test_dh_stored_restored()
408 .set_public_key(key1.public_key().to_owned().unwrap()) in test_set_keys()
416 key1.public_key().to_owned().unwrap(), in test_set_keys()
417 key1.private_key().to_owned().unwrap(), in test_set_keys()
456 dh_params1.prime_p().to_owned().unwrap(), in test_dh_generate_params_generate_key_compute_key()
458 dh_params1.generator().to_owned().unwrap(), in test_dh_generate_params_generate_key_compute_key()
/third_party/rust/crates/cxx/gen/lib/src/syntax/
H A Dcheck.rs227 Type::CxxVector(_) => Some("CxxVector<...>".to_owned()), in check_type_ref()
702 "struct".to_owned() in describe()
704 "enum".to_owned() in describe()
706 "C++ type".to_owned() in describe()
708 "opaque C++ type".to_owned() in describe()
710 "opaque Rust type".to_owned() in describe()
712 "C++ string".to_owned() in describe()
714 "C char".to_owned() in describe()
719 Type::RustBox(_) => "Box".to_owned(), in describe()
720 Type::RustVec(_) => "Vec".to_owned(), in describe()
[all...]
/third_party/rust/crates/cxx/syntax/
H A Dcheck.rs227 Type::CxxVector(_) => Some("CxxVector<...>".to_owned()), in check_type_ref()
702 "struct".to_owned() in describe()
704 "enum".to_owned() in describe()
706 "C++ type".to_owned() in describe()
708 "opaque C++ type".to_owned() in describe()
710 "opaque Rust type".to_owned() in describe()
712 "C++ string".to_owned() in describe()
714 "C char".to_owned() in describe()
719 Type::RustBox(_) => "Box".to_owned(), in describe()
720 Type::RustVec(_) => "Vec".to_owned(), in describe()
[all...]
/third_party/rust/crates/cxx/gen/cmd/src/syntax/
H A Dcheck.rs227 Type::CxxVector(_) => Some("CxxVector<...>".to_owned()), in check_type_ref()
702 "struct".to_owned() in describe()
704 "enum".to_owned() in describe()
706 "C++ type".to_owned() in describe()
708 "opaque C++ type".to_owned() in describe()
710 "opaque Rust type".to_owned() in describe()
712 "C++ string".to_owned() in describe()
714 "C char".to_owned() in describe()
719 Type::RustBox(_) => "Box".to_owned(), in describe()
720 Type::RustVec(_) => "Vec".to_owned(), in describe()
[all...]
/third_party/rust/crates/cxx/macro/src/syntax/
H A Dcheck.rs227 Type::CxxVector(_) => Some("CxxVector<...>".to_owned()), in check_type_ref()
702 "struct".to_owned() in describe()
704 "enum".to_owned() in describe()
706 "C++ type".to_owned() in describe()
708 "opaque C++ type".to_owned() in describe()
710 "opaque Rust type".to_owned() in describe()
712 "C++ string".to_owned() in describe()
714 "C char".to_owned() in describe()
719 Type::RustBox(_) => "Box".to_owned(), in describe()
720 Type::RustVec(_) => "Vec".to_owned(), in describe()
[all...]
/third_party/rust/crates/cxx/gen/build/src/syntax/
H A Dcheck.rs227 Type::CxxVector(_) => Some("CxxVector<...>".to_owned()), in check_type_ref()
702 "struct".to_owned() in describe()
704 "enum".to_owned() in describe()
706 "C++ type".to_owned() in describe()
708 "opaque C++ type".to_owned() in describe()
710 "opaque Rust type".to_owned() in describe()
712 "C++ string".to_owned() in describe()
714 "C char".to_owned() in describe()
719 Type::RustBox(_) => "Box".to_owned(), in describe()
720 Type::RustVec(_) => "Vec".to_owned(), in describe()
[all...]
/third_party/rust/crates/nix/test/
H A Dtest_dir.rs29 .map(|e| e.file_name().to_str().unwrap().to_owned()) in read()
47 .map(|e| e.unwrap().file_name().to_owned()) in rewind()
51 .map(|e| e.unwrap().file_name().to_owned()) in rewind()
55 .map(|e| e.unwrap().file_name().to_owned()) in rewind()
/third_party/rust/crates/regex/regex-capi/src/
H A Dmacros.rs15 s.to_owned()
17 s.to_owned()
19 "UNABLE TO SHOW RESULT OF PANIC.".to_owned()
/third_party/rust/crates/cxx/gen/cmd/src/
H A Dapp.rs82 path: include[1..include.len() - 1].to_owned(),
87 path: include.to_owned(),
140 Ok((_, CfgValue::Str(_))) => Ok(arg.to_owned()), in arg_cfg()
149 Ok(arg.to_owned()) in arg_cfg()
151 Err(_) => Err("expected name=\"value\", name=true, or name=false".to_owned()), in arg_cfg()
/third_party/rust/crates/syn/tests/
H A Dtest_lit.rs230 Lit::Str(lit) => lit.suffix().to_owned(), in suffix()
231 Lit::ByteStr(lit) => lit.suffix().to_owned(), in suffix()
232 Lit::Byte(lit) => lit.suffix().to_owned(), in suffix()
233 Lit::Char(lit) => lit.suffix().to_owned(), in suffix()
234 Lit::Int(lit) => lit.suffix().to_owned(), in suffix()
235 Lit::Float(lit) => lit.suffix().to_owned(), in suffix()
/third_party/rust/crates/regex/bench/src/
H A Dmisc.rs49 "abcdefghijklmnopqrstuvwxyz".to_owned()
57 "abcdefghijklmnopqrstuvwxyz".to_owned()
65 "abcddddddeeeededd".to_owned()
69 "abcddddddeeeededd".to_owned()
73 "abcdefghijklmnopqrstuvwxyz".to_owned()
77 "abcdefghijklmnopqrstuvwxyz".to_owned()
/third_party/rust/crates/cxx/gen/build/src/
H A Dcargo.rs24 let msg = "expected `feature = \"...\"`".to_owned(); in eval()
29 let msg = "cfg(test) is not supported because Cargo runs your build script only once across the lib and test build of the same crate".to_owned(); in eval()
63 let feature_name = Name(feature_name.to_owned()); in load()
66 let cfg_name = Name(cfg_name.to_owned()); in load()
/third_party/rust/crates/nom/src/
H A Dinternal.rs179 pub fn to_owned(self) -> Err<(Vec<u8>, ErrorKind)> { in to_owned() functions
180 self.map_input(ToOwned::to_owned) in to_owned()
188 pub fn to_owned(self) -> Err<(String, ErrorKind)> { in to_owned() functions
189 self.map_input(ToOwned::to_owned) in to_owned()
197 pub fn to_owned(self) -> Err<error::Error<Vec<u8>>> { in to_owned() functions
198 self.map_input(ToOwned::to_owned) in to_owned()
206 pub fn to_owned(self) -> Err<error::Error<String>> { in to_owned() functions
207 self.map_input(ToOwned::to_owned) in to_owned()
/third_party/rust/crates/clap/src/builder/
H A Dvalue_parser.rs89 /// Ok((var.to_owned(), Some(value.to_owned())))
91 /// Ok((env.to_owned(), None))
839 .unwrap_or_else(|| "...".to_owned()); in parse_ref()
840 crate::Error::value_validation(arg, value.to_owned(), e.into()).with_cmd(cmd) in parse_ref()
869 TypedValueParser::parse(self, cmd, arg, value.to_owned()) in parse_ref()
917 TypedValueParser::parse(self, cmd, arg, value.to_owned()) in parse_ref()
959 TypedValueParser::parse(self, cmd, arg, value.to_owned()) in parse_ref()
973 .unwrap_or_else(|| "...".to_owned()), in parse()
1051 .map(|v| v.get_name().to_owned()) in parse_ref()
[all...]
/third_party/rust/crates/rustix/src/
H A Dcstr.rs61 assert_eq!(cstr!("").to_owned(), CString::new("").unwrap()); in test_cstr()
63 assert_eq!(cstr!("hello").to_owned(), CString::new("hello").unwrap()); in test_cstr()
/third_party/rust/crates/clang-sys/build/
H A Dstatic.rs37 name.to_owned() in get_library_name()
69 let pattern = directory.join("libclang*.a").to_str().unwrap().to_owned(); in get_clang_libraries()
113 let mode = common::run_llvm_config(&["--shared-mode"]).map(|m| m.trim().to_owned()); in link()
/third_party/rust/crates/os_str_bytes/tests/
H A Dcommon.rs72 let os_string = from_vec(string.to_owned())?;
86 let os_string = string.to_owned().into();
88 assert_eq!(Ok(&os_string), from_vec(string.to_owned()).as_ref());
/third_party/rust/crates/regex/bench/src/ffi/
H A Dpcre1.rs42 let pattern = CString::new(pattern.to_owned()).unwrap(); in new()
56 unsafe { CStr::from_ptr(errptr).to_str().unwrap().to_owned() }; in new()
67 unsafe { CStr::from_ptr(errptr).to_str().unwrap().to_owned() }; in new()
/third_party/rust/crates/clap/clap_mangen/src/
H A Dlib.rs30 let title = cmd.get_name().to_owned(); in new()
31 let section = "1".to_owned(); in new()
32 let date = "".to_owned(); in new()
38 let manual = "".to_owned(); in new()
/third_party/rust/crates/linux-raw-sys/gen/src/
H A Dmain.rs52 src_lib_rs_contents = src_lib_rs_contents[..edit_at].to_owned(); in main()
71 cargo_toml_contents = cargo_toml_contents[..edit_at].to_owned(); in main()
99 let linux_arch = linux_arch_entry.file_name().to_str().unwrap().to_owned(); in main()
156 if features.insert(mod_name.to_owned()) { in main()
307 .rustfmt_configuration_file(Some(Path::new("bindgen-rustfmt.toml").to_owned()))
/third_party/rust/crates/codespan/codespan-reporting/examples/
H A Dcustom_files.rs181 "found greetings!".to_owned(), in to_diagnostic()
182 "pleas no greetings :(".to_owned(), in to_diagnostic()
194 .with_notes(vec!["ridiculous!".to_owned()]), in to_diagnostic()
/third_party/rust/crates/serde/test_suite/tests/
H A Dtest_macros.rs653 assert_tokens(&Untagged::E("e".to_owned()), &[Token::Str("e")]); in test_untagged_enum()
861 kind: "Foo".to_owned(), in test_internally_tagged_enum_with_untagged_variant()
876 kind: "Foo".to_owned(), in test_internally_tagged_enum_with_untagged_variant()
894 kind: "Tagged".to_owned(), in test_internally_tagged_enum_with_untagged_variant()
927 string: "\0".to_owned(), in test_internally_tagged_bytes()
944 string: "\0".to_owned(), in test_internally_tagged_bytes()
961 string: "\0".to_owned(), in test_internally_tagged_bytes()
978 string: "\0".to_owned(), in test_internally_tagged_bytes()
1754 map.insert(100, "BTreeMap".to_owned()); in test_untagged_enum_with_flattened_integer_key()
1847 string: "\0".to_owned(), in test_untagged_bytes()
[all...]
/third_party/rust/crates/clap/src/output/textwrap/
H A Dmod.rs27 content.to_owned()
38 .map(|s| s.to_owned()) in wrap()

Completed in 15 milliseconds

123456