Searched refs:from_ref (Results 1 – 8 of 8) sorted by relevance
20 pub fn from_ref(v: &Vec<T>) -> &Self { in from_ref() method74 Self::from_ref(unsafe { &*(v as *const Vec<String> as *const Vec<RustString>) }) in from_ref_vec_string()
14 pub fn from_ref(s: &String) -> &Self { in from_ref() method
11 pub fn from_ref<T>(slice: &[T]) -> Self { in from_ref() method
93 fn from_ref(q: &Q) -> &Self { unsafe { mem::transmute(q) } } in from_ref() method98 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()
498 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()
142 One(ref r) => slice::from_ref(r), in as_slice()
335 pub fn from_ref<X: AsRef<[T]>>(values: X) -> RepeatedField<T> { in from_ref() method
76 ::std::slice::from_ref(&buf), in write_config_byte()