@@ -29,14 +29,14 @@ use std::future::Future;
29
29
pub struct MapDef < F > ( F ) ;
30
30
31
31
/// Maps are used to perform simple transformations of data which do not require
32
- /// any direct [`World`] access or any persistent system state. They are more
33
- /// efficient than [`Service`] or [`Callback`] when suitable.
32
+ /// any direct [`World`][4] access or any persistent system state. They are more
33
+ /// efficient than [`Service`][5] or [`Callback`][6 ] when suitable.
34
34
///
35
35
/// There are two kinds of functions that can be used as maps:
36
36
/// * **Blocking**: A regular function with a single input and any output.
37
37
/// All system execution will be blocked while this is running, similar to flushing [`Commands`].
38
38
/// * **Async**: A function that takes a single input and returns something that implements the [`Future`] trait.
39
- /// The [`Future`] will be executed in the [`AsyncComputeTaskPool`] unless the `single_threaded_async` feature is active.
39
+ /// The [`Future`] will be executed in the [`AsyncComputeTaskPool`][7] unless the `single_threaded_async` feature is active.
40
40
///
41
41
/// If you want to insert a map into a workflow or impulse chain, you can pass your function into one of the following,
42
42
/// depending on whether you want blocking or async:
@@ -46,7 +46,7 @@ pub struct MapDef<F>(F);
46
46
/// * [`Builder::create_map_block`](crate::Builder::create_map_block)
47
47
/// * [`Impulse::map_block`](crate::Impulse::map_block)
48
48
/// * **Async**
49
- /// * [`Chain::map_async`](crate::Chain::: map_async)
49
+ /// * [`Chain::map_async`](crate::Chain::map_async)
50
50
/// * [`Chain::map_async_node`](crate::Chain::map_async_node)
51
51
/// * [`Builder::create_map_async`](crate::Builder::create_map_async)
52
52
/// * [`Impulse::map_async`](crate::Impulse::map_async)
@@ -65,10 +65,10 @@ pub struct MapDef<F>(F);
65
65
/// [1]: AsMap::as_map
66
66
/// [2]: IntoBlockingMap::into_blocking_map
67
67
/// [3]: IntoAsyncMap::into_async_map
68
- /// [World ]: bevy_ecs::prelude::World
69
- /// [Service ]: crate::Service
70
- /// [Callback ]: crate::Callback
71
- /// [AsyncComputeTaskPool ]: bevy_tasks::AsyncComputeTaskPool
68
+ /// [4 ]: bevy_ecs::prelude::World
69
+ /// [5 ]: crate::Service
70
+ /// [6 ]: crate::Callback
71
+ /// [7 ]: bevy_tasks::AsyncComputeTaskPool
72
72
#[ allow( clippy:: wrong_self_convention) ]
73
73
pub trait AsMap < M > {
74
74
type MapType ;
0 commit comments