Searched refs:borrow (Results 1 - 8 of 8) sorted by relevance
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/sync/ |
H A D | watch.rs | 46 /// assert_eq!(*rx.borrow(), 2); 77 /// assert_eq!(*rx.borrow(), 2); 102 /// assert_eq!(*rx.borrow(), 2); 134 /// assert_eq!(*rx.borrow(), 1); 135 /// assert_eq!(*rx2.borrow(), 1); 137 /// assert_eq!(*rx.borrow(), 2); 138 /// assert_eq!(*rx2.borrow(), 2); 191 /// let v1 = rx.borrow(); 226 /// let v1 = rx.borrow(); 267 /// assert_eq!(*rx.borrow(), 435 pub fn borrow(&self) -> ValueRef<'_, T> { borrow() functions [all...] |
/commonlibrary/rust/ylong_http/ylong_http_client/src/util/c_openssl/ |
H A D | foreign.rs | 110 // owned.borrow -> & borrowed 111 impl std::borrow::Borrow<$borrowed> for $owned { 113 fn borrow(&self) -> &$borrowed { in borrow() functions
|
H A D | stack.rs | 14 use core::borrow::Borrow; 63 fn borrow(&self) -> &StackRef<T> { in borrow() functions
|
H A D | error.rs | 16 use std::borrow::Cow;
|
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/sync/mpsc/bounded/ |
H A D | array.rs | 143 let head = *self.head.borrow(); 201 let head = *self.head.borrow(); in len() 213 let head = *self.head.borrow(); in drop()
|
/commonlibrary/rust/ylong_json/tests/ |
H A D | sdv_adapt_serde_test.rs | 15 use std::borrow::Cow;
|
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/executor/ |
H A D | worker.rs | 178 worker_ctx.worker.lifo.borrow().is_some() || !inner.run_queue.is_empty() in has_work() 208 /// We can't get Inner with `RefCell::borrow()`, because the worker will
|
H A D | async_pool.rs | 467 let parker = worker.inner.borrow().parker.clone(); in create_async_thread_pool() 523 /// let borrow = &mut slice; 528 /// async { borrow.iter_mut().for_each(|x| *x *= 2) } 534 /// async { borrow.iter_mut().for_each(|x| *x *= 2) }
|
Completed in 5 milliseconds