Home
last modified time | relevance | path

Searched refs:Borrow (Results 1 – 25 of 46) sorted by relevance

12

/third_party/rust/crates/rustix/tests/path/
Darg.rs13 use std::borrow::Borrow; in test_arg()
18 assert_eq!(cstr!("hello"), Borrow::borrow(&t.as_cow_c_str().unwrap())); in test_arg()
19 assert_eq!(cstr!("hello"), Borrow::borrow(&t.into_c_str().unwrap())); in test_arg()
24 assert_eq!(cstr!("hello"), Borrow::borrow(&t.as_cow_c_str().unwrap())); in test_arg()
25 assert_eq!(cstr!("hello"), Borrow::borrow(&t.into_c_str().unwrap())); in test_arg()
30 assert_eq!(cstr!("hello"), Borrow::borrow(&t.as_cow_c_str().unwrap())); in test_arg()
31 assert_eq!(cstr!("hello"), Borrow::borrow(&t.into_c_str().unwrap())); in test_arg()
36 assert_eq!(cstr!("hello"), Borrow::borrow(&t.as_cow_c_str().unwrap())); in test_arg()
37 assert_eq!(cstr!("hello"), Borrow::borrow(&t.into_c_str().unwrap())); in test_arg()
42 assert_eq!(cstr!("hello"), Borrow::borrow(&t.as_cow_c_str().unwrap())); in test_arg()
[all …]
/third_party/rust/crates/cxx/syntax/
Dmap.rs1 use std::borrow::Borrow;
12 use std::borrow::Borrow;
58 K: Borrow<Q>, in contains_key()
66 K: Borrow<Q>, in get()
85 use std::borrow::Borrow;
109 K: Borrow<Q>, in contains_key()
117 K: Borrow<Q>, in get()
130 K: Borrow<Q>, in remove()
172 K: Borrow<Q> + Hash + Eq,
Dset.rs9 use std::borrow::Borrow;
38 &'a T: Borrow<Q>, in contains()
46 &'a T: Borrow<Q>, in get()
73 use std::borrow::Borrow;
95 T: Borrow<Q>, in contains()
103 T: Borrow<Q>, in get()
/third_party/rust/crates/clap/src/util/
Dflat_map.rs3 use std::borrow::Borrow;
44 K: Borrow<Q>, in contains_key()
57 K: Borrow<Q>, in remove()
65 K: Borrow<Q>, in remove_entry()
93 K: Borrow<Q>, in get()
106 K: Borrow<Q>, in get_mut()
Dflat_set.rs3 use std::borrow::Borrow;
30 T: Borrow<Q>, in contains()
Did.rs107 impl std::borrow::Borrow<str> for Id {
/third_party/rust/crates/signal-hook/signal-hook-async-std/src/
Dlib.rs52 use std::borrow::Borrow;
82 S: Borrow<c_int>, in new()
92 S: Borrow<c_int>, in with_exfiltrator()
/third_party/rust/crates/signal-hook/signal-hook-tokio/src/
Dlib.rs70 use std::borrow::Borrow;
101 S: Borrow<c_int>, in new()
111 S: Borrow<c_int>, in with_exfiltrator()
/third_party/rust/crates/signal-hook/src/iterator/
Dmod.rs63 use std::borrow::Borrow;
139 S: Borrow<c_int>, in new()
149 S: Borrow<c_int>, in with_exfiltrator()
Dbackend.rs20 use std::borrow::{Borrow, BorrowMut};
266 S: Borrow<c_int>, in with_pipe()
481 SD: Borrow<SignalDelivery<R, E>>, in handle()
/third_party/rust/crates/signal-hook/signal-hook-mio/src/
Dlib.rs24 use std::borrow::Borrow;
48 S: Borrow<c_int>,
59 S: Borrow<c_int>,
/third_party/rust/crates/log/src/kv/
Dkey.rs3 use std::borrow::Borrow;
100 impl<'k> Borrow<str> for Key<'k> {
Dsource.rs239 use std::borrow::Borrow;
288 K: ToKey + Borrow<str> + Eq + Hash,
310 K: ToKey + Borrow<str> + Ord,
/third_party/rust/crates/cxx/tests/ffi/
Dlib.rs234 type Borrow<'a>; typedef
236 fn c_return_borrow<'a>(s: &'a CxxString) -> UniquePtr<Borrow<'a>>; in c_return_borrow()
239 fn c_return_borrow(s: &CxxString) -> UniquePtr<Borrow>; in c_return_borrow() argument
241 fn const_member(self: &Borrow); in const_member() argument
242 fn nonconst_member(self: Pin<&mut Borrow>); in nonconst_member() argument
Dtests.cc222 Borrow::Borrow(const std::string &s) : s(s) {} in Borrow() function in tests::Borrow
224 void Borrow::const_member() const {} in const_member()
226 void Borrow::nonconst_member() {} in nonconst_member()
228 std::unique_ptr<Borrow> c_return_borrow(const std::string &s) { in c_return_borrow()
229 return std::unique_ptr<Borrow>(new Borrow(s)); in c_return_borrow()
Dtests.h80 struct Borrow { struct
81 Borrow(const std::string &s);
124 std::unique_ptr<Borrow> c_return_borrow(const std::string &s);
/third_party/rust/crates/cxx/gen/build/src/
Dcargo.rs3 use std::borrow::Borrow;
105 impl Borrow<Lookup> for Name {
/third_party/rust/crates/which-rs/src/
Dfinder.rs9 use std::borrow::Borrow;
91 binary_regex: impl Borrow<Regex>, in find_re()
Dlib.rs24 use std::borrow::Borrow;
144 pub fn which_re(regex: impl Borrow<Regex>) -> Result<impl Iterator<Item = path::PathBuf>> { in which_re()
184 regex: impl Borrow<Regex>, in which_re_in()
/third_party/rust/crates/foreign-types/foreign-types/src/
Dlib.rs284 impl ::std::borrow::Borrow<$borrowed> for $owned {
/third_party/rust/crates/rust-openssl/openssl/src/
Dstack.rs4 use std::borrow::Borrow;
96 impl<T: Stackable> Borrow<StackRef<T>> for Stack<T> { impl
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/detail/
Dfunc_integer.inl199 GLM_FUNC_QUALIFIER uint usubBorrow(uint const & x, uint const & y, uint & Borrow) argument
203 Borrow = x >= y ? static_cast<uint32>(0) : static_cast<uint32>(1);
211 …t, P> usubBorrow(vecType<uint, P> const & x, vecType<uint, P> const & y, vecType<uint, P> & Borrow) argument
213 Borrow = mix(vecType<uint, P>(1), vecType<uint, P>(0), greaterThanEqual(x, y));
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DBitTracker.cpp470 bool Borrow = false; in eSUB() local
477 unsigned S = bool(V1) - bool(V2) - Borrow; in eSUB()
479 Borrow = (S > 1); in eSUB()
484 if (V1.is(Borrow)) { in eSUB()
488 if (V2.is(Borrow)) in eSUB()
/third_party/rust/crates/nom/src/combinator/
Dmod.rs10 use crate::lib::std::borrow::Borrow;
424 O1: Borrow<O2>, in verify()
/third_party/rust/crates/tracing/tracing-core/src/
Dfield.rs114 borrow::Borrow,
831 Q: Borrow<str>, in field()
1078 pub trait ValidLen<'a>: Borrow<[(&'a Field, Option<&'a (dyn Value + 'a)>)]> {}

12