Home
last modified time | relevance | path

Searched refs:from_ref (Results 1 – 8 of 8) sorted by relevance

/external/rust/cxx/src/
Drust_vec.rs20 pub fn from_ref(v: &Vec<T>) -> &Self { in from_ref() method
74 Self::from_ref(unsafe { &*(v as *const Vec<String> as *const Vec<RustString>) }) in from_ref_vec_string()
Drust_string.rs14 pub fn from_ref(s: &String) -> &Self { in from_ref() method
Drust_slice.rs11 pub fn from_ref<T>(slice: &[T]) -> Self { in from_ref() method
/external/rust/crates/linked-hash-map/src/
Dlib.rs93 fn from_ref(q: &Q) -> &Self { unsafe { mem::transmute(q) } } in from_ref() method
98 Qey::from_ref(unsafe { (*self.k).borrow() }) in borrow()
349 self.map.contains_key(Qey::from_ref(k)) in contains_key()
369 self.map.get(Qey::from_ref(k)).map(|e| unsafe { &(**e).value }) in get()
387 self.map.get(Qey::from_ref(k)).map(|e| unsafe { &mut (**e).value }) in get_mut()
410 let (value, node_ptr_opt) = match self.map.get(Qey::from_ref(k)) { in get_refresh()
439 let removed = self.map.remove(Qey::from_ref(k)); in remove()
/external/rust/cxx/macro/src/
Dexpand.rs498 false => quote!(::cxx::private::RustString::from_ref(#var)), in expand_cxx_function_shim()
506 false => quote!(::cxx::private::RustVec::from_ref(#var)), in expand_cxx_function_shim()
532 false => quote!(::cxx::private::RustSlice::from_ref(#var)), in expand_cxx_function_shim()
965 false => Some(quote!(::cxx::private::RustString::from_ref)), in expand_rust_function_shim_impl()
973 false => Some(quote!(::cxx::private::RustVec::from_ref)), in expand_rust_function_shim_impl()
980 false => Some(quote!(::cxx::private::RustSlice::from_ref)), in expand_rust_function_shim_impl()
/external/rust/crates/regex-syntax/src/
Dutf8.rs142 One(ref r) => slice::from_ref(r), in as_slice()
/external/rust/crates/protobuf/src/
Drepeated.rs335 pub fn from_ref<X: AsRef<[T]>>(values: X) -> RepeatedField<T> { in from_ref() method
/external/crosvm/devices/src/pci/
Dvfio_pci.rs76 ::std::slice::from_ref(&buf), in write_config_byte()