/external/rust/crates/grpcio/src/ |
D | channel.rs | 91 Cow::Borrowed(grpcio_sys::GRPC_ARG_DEFAULT_AUTHORITY), in default_authority() 101 Cow::Borrowed(grpcio_sys::GRPC_ARG_RESOURCE_QUOTA), in set_resource_quota() 111 Cow::Borrowed(grpcio_sys::GRPC_ARG_MAX_CONCURRENT_STREAMS), in max_concurrent_stream() 120 Cow::Borrowed(grpcio_sys::GRPC_ARG_MAX_RECEIVE_MESSAGE_LENGTH), in max_receive_message_len() 129 Cow::Borrowed(grpcio_sys::GRPC_ARG_MAX_SEND_MESSAGE_LENGTH), in max_send_message_len() 138 Cow::Borrowed(grpcio_sys::GRPC_ARG_MAX_RECONNECT_BACKOFF_MS), in max_reconnect_backoff() 147 Cow::Borrowed(grpcio_sys::GRPC_ARG_INITIAL_RECONNECT_BACKOFF_MS), in initial_reconnect_backoff() 156 Cow::Borrowed(grpcio_sys::GRPC_ARG_HTTP2_INITIAL_SEQUENCE_NUMBER), in https_initial_seq_number() 166 Cow::Borrowed(grpcio_sys::GRPC_ARG_HTTP2_STREAM_LOOKAHEAD_BYTES), in stream_initial_window_size() 177 Cow::Borrowed(grpcio_sys::GRPC_ARG_PRIMARY_USER_AGENT_STRING), in primary_user_agent() [all …]
|
/external/rust/crates/managed/src/ |
D | map.rs | 41 Borrowed(&'a mut [Option<(K, V)>]), enumerator 51 &ManagedMap::Borrowed(ref x) => write!(f, "Borrowed({:?})", x), in fmt() 60 ManagedMap::Borrowed(value) in from() 99 Borrowed { slice: &'a [Option<(K, V)>], begin: usize, end: usize }, enumerator 113 RangeInner::Borrowed { ref slice, ref mut begin, ref end } => { in next() 133 RangeInner::Borrowed { ref slice, ref begin, ref mut end } => { in next_back() 258 &mut ManagedMap::Borrowed(ref mut pairs) => { in clear() 272 &ManagedMap::Borrowed(ref pairs) => { in get() 287 &mut ManagedMap::Borrowed(ref mut pairs) => { in get_mut() 302 &ManagedMap::Borrowed(ref pairs) => { in range() [all …]
|
D | slice.rs | 31 Borrowed(&'a mut [T]), enumerator 41 &ManagedSlice::Borrowed(ref x) => write!(f, "Borrowed({:?})", x), in fmt() 50 ManagedSlice::Borrowed(value) in from() 85 &ManagedSlice::Borrowed(ref value) => value, in deref() 95 &mut ManagedSlice::Borrowed(ref mut value) => value, in deref_mut()
|
D | object.rs | 33 Borrowed(&'a mut T), enumerator 43 &Managed::Borrowed(ref x) => write!(f, "Borrowed({:?})", x), in fmt() 52 Managed::Borrowed(value) in from() 75 &Managed::Borrowed(ref value) => value, in deref() 85 &mut Managed::Borrowed(ref mut value) => value, in deref_mut()
|
D | slotmap.rs | 412 Slice::Borrowed(&mut elements[..]), in simple() 413 Slice::Borrowed(&mut slots[..])); in simple() 438 Slice::Borrowed(&mut elements[..]), in retained() 439 Slice::Borrowed(&mut slots[..])); in retained() 463 Slice::Borrowed(&mut elements[..]), in non_simple_free_list() 464 Slice::Borrowed(&mut slots[..])); in non_simple_free_list()
|
/external/rust/crates/same-file/src/ |
D | win.rs | 61 Borrowed(winutil::HandleRef), enumerator 89 HandleKind::Borrowed(ref h) => h.as_raw_handle(), in as_raw_handle() 98 HandleKind::Borrowed(h) => h.as_raw_handle(), in into_raw_handle() 124 Ok(info) => Ok(Handle::from_info(HandleKind::Borrowed(h), info)), in from_std_handle() 130 Err(_) => Ok(Handle { kind: HandleKind::Borrowed(h), key: None }), in from_std_handle() 162 HandleKind::Borrowed(ref h) => h.as_file(), in as_file() 169 HandleKind::Borrowed(ref mut h) => h.as_file_mut(), in as_file_mut()
|
/external/rust/crates/regex/tests/ |
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'])),
|
/external/rust/cxx/tests/ui/ |
D | expected_named.rs | 4 type Borrowed<'a>; typedef 5 fn borrowed() -> UniquePtr<Borrowed>; in borrowed()
|
D | expected_named.stderr | 4 5 | fn borrowed() -> UniquePtr<Borrowed>; 10 5 | fn borrowed() -> UniquePtr<Borrowed<'static>>;
|
/external/rust/crates/plotters/src/element/ |
D | image.rs | 19 Borrowed(&'a [u8]), enumerator 33 Buffer::Borrowed(target) => target, in as_ref() 44 Buffer::Borrowed(target) => { in to_mut() 134 image: Buffer::Borrowed(buf), in with_ref() 146 image: Buffer::Borrowed(self.image.borrow()), in copy_to()
|
/external/rust/crates/bstr/src/ |
D | cow.rs | 55 Cow::Borrowed(b) => CowBytes::new_owned(b.to_vec()), in into_owned() 64 Imp(Cow::Borrowed(bytes)) in new() 76 Cow::Borrowed(x) => x, in as_slice()
|
D | ext_vec.rs | 221 Cow::Borrowed(os_str.as_bytes()) in from_os_str_lossy() 228 Cow::Borrowed(x) => Cow::Borrowed(x.as_bytes()), in from_os_str_lossy() 429 Cow::Borrowed(_) => { in into_string_lossy()
|
/external/llvm-project/lldb/bindings/python/ |
D | python-typemaps.swig | 12 PythonList list(PyRefType::Borrowed, $input); 39 PythonList list(PyRefType::Borrowed, $input); 155 PythonString str(PyRefType::Borrowed, $input); 160 PythonByteArray bytearray(PyRefType::Borrowed, $input); 165 PythonBytes bytes(PyRefType::Borrowed, $input); 178 PythonString str(PyRefType::Borrowed, $input); 183 PythonByteArray bytearray(PyRefType::Borrowed, $input); 188 PythonBytes bytes(PyRefType::Borrowed, $input); 384 PythonFile py_file(PyRefType::Borrowed, $input); 396 PythonFile py_file(PyRefType::Borrowed, $input); [all …]
|
D | python-wrapper.swig | 158 PythonDictionary dict(PyRefType::Borrowed, py_dict); 162 PythonCallable pfunc(PyRefType::Borrowed, pfunc_impl); 342 PythonObject self(PyRefType::Borrowed, static_cast<PyObject*>(implementor)); 429 PythonObject self(PyRefType::Borrowed, static_cast<PyObject*>(implementor)); 559 PythonObject self(PyRefType::Borrowed, static_cast<PyObject*>(implementor)); 604 PythonObject self(PyRefType::Borrowed, static_cast<PyObject*>(implementor)); 629 PythonObject self(PyRefType::Borrowed, implementor); 669 PythonObject self(PyRefType::Borrowed, implementor); 699 PythonObject self(PyRefType::Borrowed, implementor); 861 PythonObject self(PyRefType::Borrowed, implementor); [all …]
|
/external/rust/crates/rusqlite/src/types/ |
D | to_sql.rs | 13 Borrowed(ValueRef<'a>), enumerator 35 ToSqlOutput::Borrowed(t.into()) in from() 77 ToSqlOutput::Borrowed(v) => ToSqlOutput::Borrowed(v), in to_sql() 78 ToSqlOutput::Owned(ref v) => ToSqlOutput::Borrowed(ValueRef::from(v)), in to_sql() 227 let cow: Cow<str> = Cow::Borrowed(s); in test_cow_str()
|
/external/rust/crates/libloading/src/ |
D | util.rs | 14 None => unsafe { Cow::Borrowed(CStr::from_ptr(&ZERO)) }, in cstr_cow_from_bytes() 16 Some(&0) => Cow::Borrowed(CStr::from_bytes_with_nul(slice) in cstr_cow_from_bytes()
|
/external/rust/crates/gdbstub/src/util/ |
D | managed_vec.rs | 22 ManagedSlice::Borrowed(_) => self.len = 0, in clear() 30 ManagedSlice::Borrowed(buf) => { in push()
|
/external/llvm-project/lldb/unittests/ScriptInterpreter/Python/ |
D | PythonDataObjectsTests.cpp | 88 PythonInteger borrowed_long(PyRefType::Borrowed, long_value.get()); in TEST_F() 338 PythonInteger chk_int(PyRefType::Borrowed, chk_value1.get()); in TEST_F() 339 PythonString chk_str(PyRefType::Borrowed, chk_value2.get()); in TEST_F() 367 PythonInteger chk_int(PyRefType::Borrowed, chk_value1.get()); in TEST_F() 368 PythonString chk_str(PyRefType::Borrowed, chk_value2.get()); in TEST_F() 409 PythonObject none_value(PyRefType::Borrowed, Py_None); in TEST_F() 423 PythonObject none_value(PyRefType::Borrowed, Py_None); in TEST_F() 435 PythonObject none_value(PyRefType::Borrowed, Py_None); in TEST_F() 491 PythonString chk_str(PyRefType::Borrowed, chk_value2.get()); in TEST_F() 529 PythonString chk_str(PyRefType::Borrowed, chk_value2.get()); in TEST_F() [all …]
|
/external/rust/crates/form_urlencoded/src/ |
D | lib.rs | 66 Cow::Borrowed(_) => replaced, in decode() 73 None => Cow::Borrowed(input), in replace_plus() 394 Cow::Borrowed(bytes) => String::from_utf8_lossy(bytes), in decode_utf8_lossy() 397 Cow::Borrowed(utf8) => { in decode_utf8_lossy()
|
/external/rust/crates/percent-encoding/ |
D | lib.rs | 379 None => Cow::Borrowed(iter.bytes.as_slice()), in from() 407 Cow::Borrowed(bytes) => match str::from_utf8(bytes) { in decode_utf8() 429 Cow::Borrowed(bytes) => String::from_utf8_lossy(bytes), in decode_utf8_lossy() 433 Cow::Borrowed(utf8) => raw_utf8 = utf8.as_bytes(), in decode_utf8_lossy()
|
/external/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/ |
D | PythonDataObjects.cpp | 77 PythonInteger i(PyRefType::Borrowed, m_py_obj); in AsLongLong() 93 PythonInteger i(PyRefType::Borrowed, m_py_obj); in AsUnsignedLongLong() 110 PythonInteger i(PyRefType::Borrowed, m_py_obj); in AsModuloUnsignedLongLong() 262 return PythonDictionary(PyRefType::Borrowed, m_py_obj) in CreateStructuredObject() 265 return PythonBoolean(PyRefType::Borrowed, m_py_obj) in CreateStructuredObject() 268 return PythonInteger(PyRefType::Borrowed, m_py_obj) in CreateStructuredObject() 271 return PythonList(PyRefType::Borrowed, m_py_obj).CreateStructuredArray(); in CreateStructuredObject() 273 return PythonString(PyRefType::Borrowed, m_py_obj).CreateStructuredString(); in CreateStructuredObject() 275 return PythonBytes(PyRefType::Borrowed, m_py_obj).CreateStructuredString(); in CreateStructuredObject() 277 return PythonByteArray(PyRefType::Borrowed, m_py_obj) in CreateStructuredObject() [all …]
|
D | PythonDataObjects.h | 115 Borrowed, // We are not given ownership of the incoming PyObject. enumerator 153 T thing(PyRefType::Borrowed, obj); in Retain() 240 if (m_py_obj && Py_IsInitialized() && type == PyRefType::Borrowed) 245 : PythonObject(PyRefType::Borrowed, rhs.m_py_obj) {} 319 return T(PyRefType::Borrowed, m_py_obj); 392 return T(PyRefType::Borrowed, std::move(obj.get().get()));
|
D | ScriptInterpreterPython.cpp | 830 PythonDictionary main_dict(PyRefType::Borrowed, in GetSessionDictionary() 894 PythonObject module(PyRefType::Borrowed, in GetEmbeddedInterpreterModuleObjects() 899 PythonDictionary module_dict(PyRefType::Borrowed, in GetEmbeddedInterpreterModuleObjects() 1519 PythonObject implementor(PyRefType::Borrowed, in GetRecognizedArguments() 1535 PythonList result_list(PyRefType::Borrowed, py_return.get()); in GetRecognizedArguments() 1584 PythonObject implementor(PyRefType::Borrowed, in OSPlugin_RegisterInfo() 1620 PythonDictionary result_dict(PyRefType::Borrowed, py_return.get()); in OSPlugin_RegisterInfo() 1639 PythonObject implementor(PyRefType::Borrowed, in OSPlugin_ThreadsInfo() 1676 PythonList result_list(PyRefType::Borrowed, py_return.get()); in OSPlugin_ThreadsInfo() 1726 PythonObject implementor(PyRefType::Borrowed, in OSPlugin_RegisterContextData() [all …]
|
/external/rust/crates/rand/src/distributions/ |
D | uniform.rs | 318 pub trait SampleBorrow<Borrowed> { 322 fn borrow(&self) -> &Borrowed; in borrow() argument 324 impl<Borrowed> SampleBorrow<Borrowed> for Borrowed implementation 325 where Borrowed: SampleUniform 328 fn borrow(&self) -> &Borrowed { in borrow() argument 332 impl<'a, Borrowed> SampleBorrow<Borrowed> for &'a Borrowed implementation 333 where Borrowed: SampleUniform 336 fn borrow(&self) -> &Borrowed { in borrow() argument
|
/external/rust/crates/url/tests/ |
D | unit.rs | 638 Some((Cow::Borrowed("page"), Cow::Borrowed("2"))) in test_query() 649 Some((Cow::Borrowed("country"), Cow::Borrowed("español"))) in test_query() 658 Some((Cow::Borrowed("page"), Cow::Borrowed("2"))) in test_query() 662 Some((Cow::Borrowed("sort"), Cow::Borrowed("desc"))) in test_query()
|