Home
last modified time | relevance | path

Searched refs:Borrowed (Results 1 - 25 of 32) sorted by relevance

12

/third_party/rust/crates/syn/codegen/src/
H A Doperand.rs5 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 Dvisit.rs1 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 Dvisit_mut.rs1 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 Dsnapshot.rs1 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 Dcow.rs18 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 Darg.rs100 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 Dlib.rs318 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 Draw_str.rs139 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 Derror.rs134 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 Dreplace.rs155 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 Dexpected_named.rs4 type Borrowed<'a>; types
5 fn borrowed() -> UniquePtr<Borrowed>; in borrowed()
/third_party/rust/crates/os_str_bytes/src/wasm/
H A Dmod.rs43 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 Drandom.rs24 assert_eq!(Ok(Cow::Borrowed(&*os_string)), common::from_bytes(&string)); in test_bytes()
H A Dcommon.rs81 assert_eq!(Ok(Cow::Borrowed(os_string)), from_bytes(string));
/third_party/rust/crates/os_str_bytes/src/common/
H A Dmod.rs30 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 Dlib.rs175 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 Dmain.rs115 .unwrap_or(Cow::Borrowed("main.rs")); in render_location()
/third_party/rust/crates/serde/test_suite/tests/
H A Dtest_borrow.rs157 Cow::Borrowed("borrowed") => {} in test_cow()
/third_party/rust/crates/env_logger/src/fmt/writer/termcolor/
H A Dextern_impl.rs415 style: Cow::Borrowed(self), in value()
/third_party/rust/crates/quote/tests/
H A Dtest.rs394 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 Dlib.rs816 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 DMicrosoftDemangle.cpp247 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 Ddiagnostic.rs238 Cow::Borrowed(msg) in to_tokens()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Demangle/
H A DMicrosoftDemangle.h192 /// 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 Dmod.rs819 Message::Formatted(s) => Cow::Borrowed(s), in formatted()

Completed in 26 milliseconds

12