/external/rust/crates/rayon-core/src/join/ |
D | mod.rs | 95 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/ |
D | mod.rs | 107 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/ |
D | job.rs | 70 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/ |
D | mod.rs | 62 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/ |
D | lib.rs | 299 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/ |
D | either_or_both.rs | 106 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()
|
D | peeking_take_while.rs | 19 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/ |
D | mod.rs | 60 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/ |
D | lib.rs | 172 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/ |
D | mod.rs | 219 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/ |
D | lib.rs | 456 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> {
|
D | race.rs | 56 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/ |
D | lazy.rs | 36 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/ |
D | yield_in_closure.stderr | 9 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/ |
D | thread.rs | 150 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/ |
D | mock_pool.rs | 11 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/ |
D | traits.rs | 72 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/ |
D | guard.rs | 92 F: FnOnce() -> R, in defer() 190 F: FnOnce() -> R, in defer_unchecked() 362 F: FnOnce() -> R, in repin_after()
|
/external/rust/crates/either/src/ |
D | lib.rs | 252 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/ |
D | traits.rs | 11 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/ |
D | blocking.rs | 48 F: FnOnce() -> R, 111 F: FnOnce() -> R + Send + 'static,
|
D | task_local.rs | 149 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/ |
D | unsafe_cell.rs | 9 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/ |
D | util.rs | 42 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/ |
D | loom.rs | 9 F: FnOnce(&mut *mut T) -> R; in with_mut() 15 F: FnOnce(&mut *mut T) -> R, in with_mut()
|