/third_party/rust/crates/syn/codegen/src/ |
H A D | operand.rs | 5 Borrowed(TokenStream), 14 Borrowed(n) | Owned(n) => n, in tokens() 20 Borrowed(n) => n.clone(), in ref_tokens() 27 Borrowed(n) => n.clone(), in ref_mut_tokens() 34 Borrowed(n) => quote!(*#n), in owned_tokens()
|
H A D | visit.rs | 1 use crate::operand::{Borrowed, Operand, Owned}; 39 let operand = Borrowed(quote!(it)); in visit() 49 let operand = Borrowed(quote!(it)); in visit() 60 let it = Borrowed(quote!(it)); in visit() 131 let borrowed_binding = Borrowed(quote!(#binding)); in node()
|
H A D | visit_mut.rs | 1 use crate::operand::{Borrowed, Operand, Owned}; 39 let operand = Borrowed(quote!(it)); in visit() 49 let operand = Borrowed(quote!(it)); in visit() 60 let it = Borrowed(quote!(it)); in visit() 131 let borrowed_binding = Borrowed(quote!(#binding)); in node()
|
H A D | snapshot.rs | 1 use crate::operand::{Borrowed, Operand, Owned}; 69 if let Some(format) = format_field(&Borrowed(quote!(_val)), ty) { in format_field() 164 &Borrowed(quote!(_val)), in expand_impl_body() 181 format_field(&Borrowed(val), ty).map(|format| { in expand_impl_body() 201 let format = format_field(&Borrowed(val), ty)?; in expand_impl_body()
|
/third_party/rust/crates/memchr/src/ |
H A D | cow.rs | 18 Borrowed(&'a [u8]), 64 Imp::Borrowed(b) => CowBytes::new_owned(Box::from(b)), in into_owned() 74 Imp::Borrowed(bytes) in new() 88 Imp::Borrowed(x) => x, in as_slice()
|
/third_party/rust/crates/rustix/src/path/ |
H A D | arg.rs | 100 Cow::Borrowed(self) in to_string_lossy() 138 Cow::Borrowed(self) in to_string_lossy() 174 Cow::Borrowed(self) in to_string_lossy() 455 Ok(Cow::Borrowed(self)) in to_string_lossy() 463 Ok(Cow::Borrowed(self)) in to_string_lossy() 489 Ok(Cow::Borrowed(self)) in to_string_lossy() 497 Ok(Cow::Borrowed(self)) in to_string_lossy() 523 Ok(Cow::Borrowed(self)) in to_string_lossy() 552 Cow::Borrowed(self) in to_string_lossy() 570 Cow::Borrowed( in to_string_lossy() [all...] |
/third_party/rust/crates/os_str_bytes/src/ |
H A D | lib.rs | 318 Cow::Borrowed(string) => imp::os_str_from_bytes(string), in from_raw_bytes() 325 Cow::Borrowed(string) => Cow::Borrowed(Path::new(string)), in cow_os_str_into_path()
|
H A D | raw_str.rs | 139 Cow::Borrowed(string) => Cow::Borrowed(Self::from_inner(string)), in new() 894 Cow::Borrowed(value) in from() 952 /// let raw = Cow::Borrowed(RawOsStr::from_str(string)); in into_os_str() 965 Cow::Borrowed(string) => string.to_os_str(), in into_os_str() 973 Cow::Borrowed(string) => Cow::Borrowed(&string.0), in into_raw_bytes()
|
/third_party/rust/crates/rust-openssl/openssl/src/ |
H A D | error.rs | 134 Cow::Borrowed(data) in get() 137 let data = Cow::Borrowed(data); in get() 169 Some(Cow::Borrowed(data)) => Some((data.as_ptr() as *mut c_char, 0)), in put()
|
/third_party/rust/crates/regex/tests/ |
H A D | replace.rs | 155 t!(std::borrow::Cow::<'_, str>::Borrowed("Z")), 163 t!(&std::borrow::Cow::<'_, str>::Borrowed("Z")), 204 bytes!(std::borrow::Cow::<'_, [u8]>::Borrowed(&[b'Z'])), 212 bytes!(&std::borrow::Cow::<'_, [u8]>::Borrowed(&[b'Z'])),
|
/third_party/rust/crates/cxx/tests/ui/ |
H A D | expected_named.rs | 4 type Borrowed<'a>; types 5 fn borrowed() -> UniquePtr<Borrowed>; in borrowed()
|
/third_party/rust/crates/os_str_bytes/src/wasm/ |
H A D | mod.rs | 43 from_bytes(string).map(|x| Cow::Borrowed(OsStr::new(x))) 47 Cow::Borrowed(expect_utf8!(os_string.to_str()).as_bytes())
|
/third_party/rust/crates/os_str_bytes/tests/ |
H A D | random.rs | 24 assert_eq!(Ok(Cow::Borrowed(&*os_string)), common::from_bytes(&string)); in test_bytes()
|
H A D | common.rs | 81 assert_eq!(Ok(Cow::Borrowed(os_string)), from_bytes(string));
|
/third_party/rust/crates/os_str_bytes/src/common/ |
H A D | mod.rs | 30 Ok(Cow::Borrowed(OsStrExt::from_bytes(string))) 34 Cow::Borrowed(OsStrExt::as_bytes(os_string))
|
/third_party/rust/crates/rust-openssl/openssl-errors/src/ |
H A D | lib.rs | 175 Some(Cow::Borrowed(s)) => Some((s.as_ptr() as *const c_char as *mut c_char, 0)), in put_error_inner() 221 $crate::export::Option::Some($crate::export::Cow::Borrowed(
|
/third_party/rust/crates/syn/examples/dump-syntax/src/ |
H A D | main.rs | 115 .unwrap_or(Cow::Borrowed("main.rs")); in render_location()
|
/third_party/rust/crates/serde/test_suite/tests/ |
H A D | test_borrow.rs | 157 Cow::Borrowed("borrowed") => {} in test_cow()
|
/third_party/rust/crates/env_logger/src/fmt/writer/termcolor/ |
H A D | extern_impl.rs | 415 style: Cow::Borrowed(self), in value()
|
/third_party/rust/crates/quote/tests/ |
H A D | test.rs | 394 let borrowed = Cow::Borrowed(&ident); in test_cow() 429 let id5 = format_ident!("Hello{}", Cow::Borrowed("World")); in test_format_ident()
|
/third_party/rust/crates/log/src/ |
H A D | lib.rs | 816 Borrowed(&'a str), 824 MaybeStaticStr::Borrowed(s) => s, in get() 1099 self.record.module_path = path.map(MaybeStaticStr::Borrowed); in module_path() 1113 self.record.file = file.map(MaybeStaticStr::Borrowed); in file()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Demangle/ |
H A D | MicrosoftDemangle.cpp | 247 StringView Demangler::copyString(StringView Borrowed) { in copyString() argument 248 char *Stable = Arena.allocUnalignedBuffer(Borrowed.size() + 1); in copyString() 249 std::strcpy(Stable, Borrowed.begin()); in copyString() 251 return {Stable, Borrowed.size()}; in copyString()
|
/third_party/rust/crates/proc-macro-error/src/ |
H A D | diagnostic.rs | 238 Cow::Borrowed(msg) in to_tokens()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Demangle/ |
H A D | MicrosoftDemangle.h | 192 /// Allocate a copy of \p Borrowed into memory that we own. 193 StringView copyString(StringView Borrowed);
|
/third_party/rust/crates/clap/src/error/ |
H A D | mod.rs | 819 Message::Formatted(s) => Cow::Borrowed(s), in formatted()
|