Home
last modified time | relevance | path

Searched refs:FnOnce (Results 1 – 25 of 203) sorted by relevance

123456789

/external/rust/crates/rayon-core/src/join/
Dmod.rs95 A: FnOnce() -> RA + Send, in join()
96 B: FnOnce() -> RB + Send, in join()
101 fn call<R>(f: impl FnOnce() -> R) -> impl FnOnce(FnContext) -> R { in join()
117 A: FnOnce(FnContext) -> RA + Send, in join_context()
118 B: FnOnce(FnContext) -> RB + Send, in join_context()
123 fn call_a<R>(f: impl FnOnce(FnContext) -> R, injected: bool) -> impl FnOnce() -> R { in join_context()
128 fn call_b<R>(f: impl FnOnce(FnContext) -> R) -> impl FnOnce(bool) -> R { in join_context()
/external/rust/crates/rayon-core/src/thread_pool/
Dmod.rs107 OP: FnOnce() -> R + Send, in install()
187 A: FnOnce() -> RA + Send, in join()
188 B: FnOnce() -> RB + Send, in join()
203 OP: FnOnce(&Scope<'scope>) -> R + Send, in scope()
218 OP: FnOnce(&ScopeFifo<'scope>) -> R + Send, in scope_fifo()
234 OP: FnOnce() + Send + 'static, in spawn()
250 OP: FnOnce() + Send + 'static, in spawn_fifo()
/external/rust/crates/rayon-core/src/
Djob.rs70 F: FnOnce(bool) -> R + Send,
81 F: FnOnce(bool) -> R + Send,
108 F: FnOnce(bool) -> R + Send,
112 fn call<R>(func: impl FnOnce(bool) -> R) -> impl FnOnce() -> R { in execute()
136 BODY: FnOnce() + Send,
143 BODY: FnOnce() + Send,
162 BODY: FnOnce() + Send,
/external/rust/crates/rayon-core/src/spawn/
Dmod.rs62 F: FnOnce() + Send + 'static, in spawn()
73 F: FnOnce() + Send + 'static, in spawn_in()
88 F: FnOnce() + Send + 'static, in spawn_job()
137 F: FnOnce() + Send + 'static, in spawn_fifo()
148 F: FnOnce() + Send + 'static, in spawn_fifo_in()
/external/rust/crates/scopeguard/src/
Dlib.rs299 where F: FnOnce(T),
309 where F: FnOnce(T),
368 where F: FnOnce(T) in guard()
379 where F: FnOnce(T) in guard_on_success()
414 where F: FnOnce(T) in guard_on_unwind()
424 F: FnOnce(T),
429 where F: FnOnce(T),
440 where F: FnOnce(T),
449 where F: FnOnce(T),
466 F: FnOnce(T),
/external/rust/crates/itertools/src/
Deither_or_both.rs106 F: FnOnce(A) -> M, in map_left()
119 F: FnOnce(B) -> M, in map_right()
133 F: FnOnce(A) -> L, in map_any()
134 G: FnOnce(B) -> R, in map_any()
147 F: FnOnce(A) -> EitherOrBoth<L, B>, in left_and_then()
159 F: FnOnce(B) -> EitherOrBoth<A, R>, in right_and_then()
172 F: FnOnce(T, T) -> T, in reduce()
Dpeeking_take_while.rs19 where F: FnOnce(&Self::Item) -> bool; in peeking_next()
26 where F: FnOnce(&Self::Item) -> bool in peeking_next()
41 where F: FnOnce(&Self::Item) -> bool in peeking_next()
60 where F: FnOnce(&Self::Item) -> bool in peeking_next()
117 where F: FnOnce(&Self::Item) -> bool
/external/rust/crates/rayon-core/src/scope/
Dmod.rs60 marker: PhantomData<Box<dyn FnOnce(&Scope<'scope>) + Send + Sync + 'scope>>,
288 OP: FnOnce(&Scope<'scope>) -> R + Send, in scope()
379 OP: FnOnce(&ScopeFifo<'scope>) -> R + Send, in scope_fifo()
449 BODY: FnOnce(&Scope<'scope>) + Send + 'scope, in spawn()
490 BODY: FnOnce(&ScopeFifo<'scope>) + Send + 'scope, in spawn_fifo()
534 FUNC: FnOnce() -> R, in complete()
547 FUNC: FnOnce(), in execute_job() argument
559 FUNC: FnOnce() -> R, in execute_job_closure()
/external/rust/crates/nix/src/
Dlib.rs172 where F: FnOnce(&CStr) -> T; in with_nix_path()
185 where F: FnOnce(&CStr) -> T { in with_nix_path()
200 where F: FnOnce(&CStr) -> T { in with_nix_path()
215 where F: FnOnce(&CStr) -> T { in with_nix_path()
235 where F: FnOnce(&CStr) -> T { in with_nix_path()
265 fn with_nix_path<T, F>(&self, f: F) -> Result<T> where F: FnOnce(&CStr) -> T { in with_nix_path()
279 fn with_nix_path<T, F>(&self, f: F) -> Result<T> where F: FnOnce(&CStr) -> T { in with_nix_path()
/external/rust/crates/futures-util/src/future/try_future/
Dmod.rs219 F: FnOnce(Self::Ok) -> T, in map_ok()
259 F: FnOnce(Self::Ok) -> T, in map_ok_or_else()
260 E: FnOnce(Self::Error) -> T, in map_ok_or_else()
307 F: FnOnce(Self::Error) -> E, in map_err()
391 F: FnOnce(Self::Ok) -> Fut, in and_then()
436 F: FnOnce(Self::Error) -> Fut, in or_else()
463 F: FnOnce(&Self::Ok), in inspect_ok()
489 F: FnOnce(&Self::Error), in inspect_err()
567 F: FnOnce(Self::Error) -> Self::Ok, in unwrap_or_else()
/external/rust/crates/once_cell/src/
Dlib.rs456 F: FnOnce() -> T, in get_or_init()
492 F: FnOnce() -> Result<T, E>, in get_or_try_init()
615 impl<T, F: FnOnce() -> T> Lazy<T, F> {
638 impl<T, F: FnOnce() -> T> Deref for Lazy<T, F> {
645 impl<T, F: FnOnce() -> T> DerefMut for Lazy<T, F> {
842 F: FnOnce() -> T, in get_or_init()
879 F: FnOnce() -> Result<T, E>, in get_or_try_init()
1007 impl<T, F: FnOnce() -> T> Lazy<T, F> {
1029 impl<T, F: FnOnce() -> T> Deref for Lazy<T, F> {
1036 impl<T, F: FnOnce() -> T> DerefMut for Lazy<T, F> {
Drace.rs56 F: FnOnce() -> NonZeroUsize, in get_or_init()
74 F: FnOnce() -> Result<NonZeroUsize, E>, in get_or_try_init()
129 F: FnOnce() -> bool, in get_or_init()
143 F: FnOnce() -> Result<bool, E>, in get_or_try_init()
235 F: FnOnce() -> Box<T>, in get_or_init()
253 F: FnOnce() -> Result<Box<T>, E>, in get_or_try_init()
/external/rust/crates/futures-util/src/future/
Dlazy.rs36 where F: FnOnce(&mut Context<'_>) -> R, in lazy()
42 where F: FnOnce(&mut Context<'_>) -> R,
48 where F: FnOnce(&mut Context<'_>) -> R,
/external/rust/crates/async-stream/tests/ui/
Dyield_in_closure.stderr9 error[E0277]: expected a `std::ops::FnOnce<(&str,)>` closure, found `[generator@$DIR/tests/ui/yield…
13 …| ^^^^^^^^ expected an `FnOnce<(&str,)>` closure, found `[generator@$DIR/tests/ui/yie…
15 …= help: the trait `std::ops::FnOnce<(&str,)>` is not implemented for `[generator@$DIR/tests/ui/yie…
/external/rust/crates/crossbeam-utils/src/
Dthread.rs150 F: FnOnce(&Scope<'env>) -> R, in scope()
247 F: FnOnce(&Scope<'env>) -> T, in spawn()
412 F: FnOnce(&Scope<'env>) -> T, in spawn()
444 let closure: Box<dyn FnOnce() + Send + 'env> = Box::new(closure); in spawn()
445 let closure: Box<dyn FnOnce() + Send + 'static> = in spawn()
/external/rust/crates/tokio/tests/support/
Dmock_pool.rs11 static QUEUE: RefCell<VecDeque<Box<dyn FnOnce() + Send>>> = RefCell::new(VecDeque::new())
21 F: FnOnce() -> R + Send + 'static, in run()
50 F: FnOnce() -> io::Result<T> + Send + 'static, in asyncify()
/external/rust/crates/weak-table/src/
Dtraits.rs72 where F: FnOnce(&Self::Key) -> R; in with_key()
95 where F: FnOnce(&Self::Key) -> R in with_key()
122 where F: FnOnce(&Self::Key) -> R in with_key()
/external/rust/crates/crossbeam-epoch/src/
Dguard.rs92 F: FnOnce() -> R, in defer()
190 F: FnOnce() -> R, in defer_unchecked()
362 F: FnOnce() -> R, in repin_after()
/external/rust/crates/either/src/
Dlib.rs252 F: FnOnce(L) -> M, in map_left()
274 F: FnOnce(R) -> S, in map_right()
300 F: FnOnce(L) -> T, in either()
301 G: FnOnce(R) -> T, in either()
330 F: FnOnce(Ctx, L) -> T, in either_with()
331 G: FnOnce(Ctx, R) -> T, in either_with()
352 F: FnOnce(L) -> Either<S, R>, in left_and_then()
373 F: FnOnce(R) -> Either<L, S>, in right_and_then()
463 F: FnOnce(R) -> L, in left_or_else()
532 F: FnOnce(L) -> R, in right_or_else()
[all …]
/external/rust/crates/criterion-plot/src/
Dtraits.rs11 F: FnOnce(&mut Self::Properties) -> &mut Self::Properties; in configure()
28 F: FnOnce(&mut Self::Properties) -> &mut Self::Properties; in plot()
/external/rust/crates/tokio/src/task/
Dblocking.rs48 F: FnOnce() -> R,
111 F: FnOnce() -> R + Send + 'static,
Dtask_local.rs149 F: FnOnce() -> R, in sync_scope()
167 F: FnOnce(&T) -> R, in with()
182 F: FnOnce(&T) -> R, in try_with()
218 fn with_task<F2: FnOnce(Pin<&mut F>) -> R, R>(self: Pin<&mut Self>, f: F2) -> R { in with_task()
/external/rust/crates/tokio/src/loom/std/
Dunsafe_cell.rs9 pub(crate) fn with<R>(&self, f: impl FnOnce(*const T) -> R) -> R { in with()
13 pub(crate) fn with_mut<R>(&self, f: impl FnOnce(*mut T) -> R) -> R { in with_mut()
/external/rust/crates/getrandom/src/
Dutil.rs42 pub fn unsync_init(&self, init: impl FnOnce() -> usize) -> usize { in unsync_init()
61 pub fn unsync_init(&self, init: impl FnOnce() -> bool) -> bool { in unsync_init()
/external/rust/crates/bytes/src/
Dloom.rs9 F: FnOnce(&mut *mut T) -> R; in with_mut()
15 F: FnOnce(&mut *mut T) -> R, in with_mut()

123456789