Home
last modified time | relevance | path

Searched refs:borrow (Results 1 - 8 of 8) sorted by relevance

/commonlibrary/rust/ylong_runtime/ylong_runtime/src/sync/
H A Dwatch.rs46 /// 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 Dforeign.rs110 // owned.borrow -> & borrowed
111 impl std::borrow::Borrow<$borrowed> for $owned {
113 fn borrow(&self) -> &$borrowed { in borrow() functions
H A Dstack.rs14 use core::borrow::Borrow;
63 fn borrow(&self) -> &StackRef<T> { in borrow() functions
H A Derror.rs16 use std::borrow::Cow;
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/sync/mpsc/bounded/
H A Darray.rs143 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 Dsdv_adapt_serde_test.rs15 use std::borrow::Cow;
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/executor/
H A Dworker.rs178 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 Dasync_pool.rs467 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