Struct sparsey::World

source ·
pub struct World {
    pub entities: EntityStorage,
    pub resources: ResourceStorage,
}
Expand description

Storage for entities and resources.

Fields§

§entities: EntityStorage

Storage for entities.

§resources: ResourceStorage

Storage for resources.

Implementations§

source§

impl World

source

pub fn run<TParams, TReturn>( &self, f: impl Run<Self, TParams, TReturn>, ) -> TReturn

Runs the function with data borrowed from self.

Examples found in repository?
examples/resources.rs (line 65)
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
fn main() {
    let mut world = World::default();
    world.entities.register::<Position>();
    world.resources.insert(Lava::default());
    world.resources.insert(FallenInLava::default());

    world.entities.create((Position { y: 0 },));
    world.entities.create((Position { y: 1 },));
    world.entities.create((Position { y: 2 },));
    world.entities.create((Position { y: 3 },));
    world.entities.create((Position { y: 4 },));
    world.entities.create((Position { y: 5 },));

    for _ in 0..3 {
        world.run(raise_lava);
        world.run(update_fallen_in_lava);
        destroy_fallen_in_lava(&mut world);
    }
}
source§

impl World

source

pub fn new(layout: &GroupLayout) -> Self

Creates a new world with the given group layout.

source

pub fn is_empty(&self) -> bool

Returns whether the world contains no entities and no resources.

source

pub fn clear(&mut self)

Removes all entities and all resources from the storage.

source

pub fn reset(&mut self)

Removes all entities and all resources from the storage and resets the entity allocator.

After this call, the storage is allowed to return previously allocated entities.

Trait Implementations§

source§

impl Debug for World

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for World

source§

fn default() -> World

Returns the “default value” for a type. Read more
source§

impl<TFunc, TReturn> IntoSystem<World, (), TReturn> for TFunc
where TFunc: Run<World, (), TReturn> + Send + Sync + 'static, for<'a> &'a mut TFunc: Run<World, (), TReturn>,

source§

fn system(self) -> System<World, TReturn>

Creates a new system from the given runnable function.
source§

impl<TFunc, TReturn, A> IntoSystem<World, (A,), TReturn> for TFunc
where TFunc: Run<World, (A,), TReturn> + Send + Sync + 'static, for<'a> &'a mut TFunc: Run<World, (A,), TReturn>,

source§

fn system(self) -> System<World, TReturn>

Creates a new system from the given runnable function.
source§

impl<TFunc, TReturn, A, B> IntoSystem<World, (A, B), TReturn> for TFunc
where TFunc: Run<World, (A, B), TReturn> + Send + Sync + 'static, for<'a> &'a mut TFunc: Run<World, (A, B), TReturn>,

source§

fn system(self) -> System<World, TReturn>

Creates a new system from the given runnable function.
source§

impl<TFunc, TReturn, A, B, C> IntoSystem<World, (A, B, C), TReturn> for TFunc
where TFunc: Run<World, (A, B, C), TReturn> + Send + Sync + 'static, for<'a> &'a mut TFunc: Run<World, (A, B, C), TReturn>,

source§

fn system(self) -> System<World, TReturn>

Creates a new system from the given runnable function.
source§

impl<TFunc, TReturn, A, B, C, D> IntoSystem<World, (A, B, C, D), TReturn> for TFunc
where TFunc: Run<World, (A, B, C, D), TReturn> + Send + Sync + 'static, for<'a> &'a mut TFunc: Run<World, (A, B, C, D), TReturn>,

source§

fn system(self) -> System<World, TReturn>

Creates a new system from the given runnable function.
source§

impl<TFunc, TReturn, A, B, C, D, E> IntoSystem<World, (A, B, C, D, E), TReturn> for TFunc
where TFunc: Run<World, (A, B, C, D, E), TReturn> + Send + Sync + 'static, for<'a> &'a mut TFunc: Run<World, (A, B, C, D, E), TReturn>,

source§

fn system(self) -> System<World, TReturn>

Creates a new system from the given runnable function.
source§

impl<TFunc, TReturn, A, B, C, D, E, F> IntoSystem<World, (A, B, C, D, E, F), TReturn> for TFunc
where TFunc: Run<World, (A, B, C, D, E, F), TReturn> + Send + Sync + 'static, for<'a> &'a mut TFunc: Run<World, (A, B, C, D, E, F), TReturn>,

source§

fn system(self) -> System<World, TReturn>

Creates a new system from the given runnable function.
source§

impl<TFunc, TReturn, A, B, C, D, E, F, G> IntoSystem<World, (A, B, C, D, E, F, G), TReturn> for TFunc
where TFunc: Run<World, (A, B, C, D, E, F, G), TReturn> + Send + Sync + 'static, for<'a> &'a mut TFunc: Run<World, (A, B, C, D, E, F, G), TReturn>,

source§

fn system(self) -> System<World, TReturn>

Creates a new system from the given runnable function.
source§

impl<TFunc, TReturn, A, B, C, D, E, F, G, H> IntoSystem<World, (A, B, C, D, E, F, G, H), TReturn> for TFunc
where TFunc: Run<World, (A, B, C, D, E, F, G, H), TReturn> + Send + Sync + 'static, for<'a> &'a mut TFunc: Run<World, (A, B, C, D, E, F, G, H), TReturn>,

source§

fn system(self) -> System<World, TReturn>

Creates a new system from the given runnable function.
source§

impl<TFunc, TReturn, A, B, C, D, E, F, G, H, I> IntoSystem<World, (A, B, C, D, E, F, G, H, I), TReturn> for TFunc
where TFunc: Run<World, (A, B, C, D, E, F, G, H, I), TReturn> + Send + Sync + 'static, for<'a> &'a mut TFunc: Run<World, (A, B, C, D, E, F, G, H, I), TReturn>,

source§

fn system(self) -> System<World, TReturn>

Creates a new system from the given runnable function.
source§

impl<TFunc, TReturn, A, B, C, D, E, F, G, H, I, J> IntoSystem<World, (A, B, C, D, E, F, G, H, I, J), TReturn> for TFunc
where TFunc: Run<World, (A, B, C, D, E, F, G, H, I, J), TReturn> + Send + Sync + 'static, for<'a> &'a mut TFunc: Run<World, (A, B, C, D, E, F, G, H, I, J), TReturn>,

source§

fn system(self) -> System<World, TReturn>

Creates a new system from the given runnable function.
source§

impl<TFunc, TReturn, A, B, C, D, E, F, G, H, I, J, K> IntoSystem<World, (A, B, C, D, E, F, G, H, I, J, K), TReturn> for TFunc

source§

fn system(self) -> System<World, TReturn>

Creates a new system from the given runnable function.
source§

impl<TFunc, TReturn, A, B, C, D, E, F, G, H, I, J, K, L> IntoSystem<World, (A, B, C, D, E, F, G, H, I, J, K, L), TReturn> for TFunc

source§

fn system(self) -> System<World, TReturn>

Creates a new system from the given runnable function.
source§

impl<TFunc, TReturn, A, B, C, D, E, F, G, H, I, J, K, L, M> IntoSystem<World, (A, B, C, D, E, F, G, H, I, J, K, L, M), TReturn> for TFunc

source§

fn system(self) -> System<World, TReturn>

Creates a new system from the given runnable function.
source§

impl<TFunc, TReturn, A, B, C, D, E, F, G, H, I, J, K, L, M, N> IntoSystem<World, (A, B, C, D, E, F, G, H, I, J, K, L, M, N), TReturn> for TFunc

source§

fn system(self) -> System<World, TReturn>

Creates a new system from the given runnable function.
source§

impl<TFunc, TReturn, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O> IntoSystem<World, (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O), TReturn> for TFunc

source§

fn system(self) -> System<World, TReturn>

Creates a new system from the given runnable function.
source§

impl<TFunc, TReturn, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> IntoSystem<World, (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P), TReturn> for TFunc

source§

fn system(self) -> System<World, TReturn>

Creates a new system from the given runnable function.
source§

impl<TFunc, TReturn> Run<World, (), TReturn> for TFunc
where TFunc: FnOnce() -> TReturn,

source§

const PARAMS: &'static [SystemParamKind] = _

The data that the system borrows from the registry during execution
source§

fn run(self, world: &World) -> TReturn

Runs the function in the given registry.
source§

impl<TFunc, A, TReturn> Run<World, (A,), TReturn> for TFunc
where TFunc: FnOnce(A) -> TReturn + FnOnce(<A as SystemParam>::Param<'_>) -> TReturn, A: SystemBorrow<World>,

source§

const PARAMS: &'static [SystemParamKind] = _

The data that the system borrows from the registry during execution
source§

fn run(self, world: &World) -> TReturn

Runs the function in the given registry.
source§

impl<TFunc, A, B, TReturn> Run<World, (A, B), TReturn> for TFunc
where TFunc: FnOnce(A, B) -> TReturn + FnOnce(<A as SystemParam>::Param<'_>, <B as SystemParam>::Param<'_>) -> TReturn, A: SystemBorrow<World>, B: SystemBorrow<World>,

source§

const PARAMS: &'static [SystemParamKind] = _

The data that the system borrows from the registry during execution
source§

fn run(self, world: &World) -> TReturn

Runs the function in the given registry.
source§

impl<TFunc, A, B, C, TReturn> Run<World, (A, B, C), TReturn> for TFunc
where TFunc: FnOnce(A, B, C) -> TReturn + FnOnce(<A as SystemParam>::Param<'_>, <B as SystemParam>::Param<'_>, <C as SystemParam>::Param<'_>) -> TReturn, A: SystemBorrow<World>, B: SystemBorrow<World>, C: SystemBorrow<World>,

source§

const PARAMS: &'static [SystemParamKind] = _

The data that the system borrows from the registry during execution
source§

fn run(self, world: &World) -> TReturn

Runs the function in the given registry.
source§

impl<TFunc, A, B, C, D, TReturn> Run<World, (A, B, C, D), TReturn> for TFunc
where TFunc: FnOnce(A, B, C, D) -> TReturn + FnOnce(<A as SystemParam>::Param<'_>, <B as SystemParam>::Param<'_>, <C as SystemParam>::Param<'_>, <D as SystemParam>::Param<'_>) -> TReturn, A: SystemBorrow<World>, B: SystemBorrow<World>, C: SystemBorrow<World>, D: SystemBorrow<World>,

source§

const PARAMS: &'static [SystemParamKind] = _

The data that the system borrows from the registry during execution
source§

fn run(self, world: &World) -> TReturn

Runs the function in the given registry.
source§

impl<TFunc, A, B, C, D, E, TReturn> Run<World, (A, B, C, D, E), TReturn> for TFunc
where TFunc: FnOnce(A, B, C, D, E) -> TReturn + FnOnce(<A as SystemParam>::Param<'_>, <B as SystemParam>::Param<'_>, <C as SystemParam>::Param<'_>, <D as SystemParam>::Param<'_>, <E as SystemParam>::Param<'_>) -> TReturn, A: SystemBorrow<World>, B: SystemBorrow<World>, C: SystemBorrow<World>, D: SystemBorrow<World>, E: SystemBorrow<World>,

source§

const PARAMS: &'static [SystemParamKind] = _

The data that the system borrows from the registry during execution
source§

fn run(self, world: &World) -> TReturn

Runs the function in the given registry.
source§

impl<TFunc, A, B, C, D, E, F, TReturn> Run<World, (A, B, C, D, E, F), TReturn> for TFunc
where TFunc: FnOnce(A, B, C, D, E, F) -> TReturn + FnOnce(<A as SystemParam>::Param<'_>, <B as SystemParam>::Param<'_>, <C as SystemParam>::Param<'_>, <D as SystemParam>::Param<'_>, <E as SystemParam>::Param<'_>, <F as SystemParam>::Param<'_>) -> TReturn, A: SystemBorrow<World>, B: SystemBorrow<World>, C: SystemBorrow<World>, D: SystemBorrow<World>, E: SystemBorrow<World>, F: SystemBorrow<World>,

source§

const PARAMS: &'static [SystemParamKind] = _

The data that the system borrows from the registry during execution
source§

fn run(self, world: &World) -> TReturn

Runs the function in the given registry.
source§

impl<TFunc, A, B, C, D, E, F, G, TReturn> Run<World, (A, B, C, D, E, F, G), TReturn> for TFunc
where TFunc: FnOnce(A, B, C, D, E, F, G) -> TReturn + FnOnce(<A as SystemParam>::Param<'_>, <B as SystemParam>::Param<'_>, <C as SystemParam>::Param<'_>, <D as SystemParam>::Param<'_>, <E as SystemParam>::Param<'_>, <F as SystemParam>::Param<'_>, <G as SystemParam>::Param<'_>) -> TReturn, A: SystemBorrow<World>, B: SystemBorrow<World>, C: SystemBorrow<World>, D: SystemBorrow<World>, E: SystemBorrow<World>, F: SystemBorrow<World>, G: SystemBorrow<World>,

source§

const PARAMS: &'static [SystemParamKind] = _

The data that the system borrows from the registry during execution
source§

fn run(self, world: &World) -> TReturn

Runs the function in the given registry.
source§

impl<TFunc, A, B, C, D, E, F, G, H, TReturn> Run<World, (A, B, C, D, E, F, G, H), TReturn> for TFunc
where TFunc: FnOnce(A, B, C, D, E, F, G, H) -> TReturn + FnOnce(<A as SystemParam>::Param<'_>, <B as SystemParam>::Param<'_>, <C as SystemParam>::Param<'_>, <D as SystemParam>::Param<'_>, <E as SystemParam>::Param<'_>, <F as SystemParam>::Param<'_>, <G as SystemParam>::Param<'_>, <H as SystemParam>::Param<'_>) -> TReturn, A: SystemBorrow<World>, B: SystemBorrow<World>, C: SystemBorrow<World>, D: SystemBorrow<World>, E: SystemBorrow<World>, F: SystemBorrow<World>, G: SystemBorrow<World>, H: SystemBorrow<World>,

source§

const PARAMS: &'static [SystemParamKind] = _

The data that the system borrows from the registry during execution
source§

fn run(self, world: &World) -> TReturn

Runs the function in the given registry.
source§

impl<TFunc, A, B, C, D, E, F, G, H, I, TReturn> Run<World, (A, B, C, D, E, F, G, H, I), TReturn> for TFunc
where TFunc: FnOnce(A, B, C, D, E, F, G, H, I) -> TReturn + FnOnce(<A as SystemParam>::Param<'_>, <B as SystemParam>::Param<'_>, <C as SystemParam>::Param<'_>, <D as SystemParam>::Param<'_>, <E as SystemParam>::Param<'_>, <F as SystemParam>::Param<'_>, <G as SystemParam>::Param<'_>, <H as SystemParam>::Param<'_>, <I as SystemParam>::Param<'_>) -> TReturn, A: SystemBorrow<World>, B: SystemBorrow<World>, C: SystemBorrow<World>, D: SystemBorrow<World>, E: SystemBorrow<World>, F: SystemBorrow<World>, G: SystemBorrow<World>, H: SystemBorrow<World>, I: SystemBorrow<World>,

source§

const PARAMS: &'static [SystemParamKind] = _

The data that the system borrows from the registry during execution
source§

fn run(self, world: &World) -> TReturn

Runs the function in the given registry.
source§

impl<TFunc, A, B, C, D, E, F, G, H, I, J, TReturn> Run<World, (A, B, C, D, E, F, G, H, I, J), TReturn> for TFunc
where TFunc: FnOnce(A, B, C, D, E, F, G, H, I, J) -> TReturn + FnOnce(<A as SystemParam>::Param<'_>, <B as SystemParam>::Param<'_>, <C as SystemParam>::Param<'_>, <D as SystemParam>::Param<'_>, <E as SystemParam>::Param<'_>, <F as SystemParam>::Param<'_>, <G as SystemParam>::Param<'_>, <H as SystemParam>::Param<'_>, <I as SystemParam>::Param<'_>, <J as SystemParam>::Param<'_>) -> TReturn, A: SystemBorrow<World>, B: SystemBorrow<World>, C: SystemBorrow<World>, D: SystemBorrow<World>, E: SystemBorrow<World>, F: SystemBorrow<World>, G: SystemBorrow<World>, H: SystemBorrow<World>, I: SystemBorrow<World>, J: SystemBorrow<World>,

source§

const PARAMS: &'static [SystemParamKind] = _

The data that the system borrows from the registry during execution
source§

fn run(self, world: &World) -> TReturn

Runs the function in the given registry.
source§

impl<TFunc, A, B, C, D, E, F, G, H, I, J, K, TReturn> Run<World, (A, B, C, D, E, F, G, H, I, J, K), TReturn> for TFunc
where TFunc: FnOnce(A, B, C, D, E, F, G, H, I, J, K) -> TReturn + FnOnce(<A as SystemParam>::Param<'_>, <B as SystemParam>::Param<'_>, <C as SystemParam>::Param<'_>, <D as SystemParam>::Param<'_>, <E as SystemParam>::Param<'_>, <F as SystemParam>::Param<'_>, <G as SystemParam>::Param<'_>, <H as SystemParam>::Param<'_>, <I as SystemParam>::Param<'_>, <J as SystemParam>::Param<'_>, <K as SystemParam>::Param<'_>) -> TReturn, A: SystemBorrow<World>, B: SystemBorrow<World>, C: SystemBorrow<World>, D: SystemBorrow<World>, E: SystemBorrow<World>, F: SystemBorrow<World>, G: SystemBorrow<World>, H: SystemBorrow<World>, I: SystemBorrow<World>, J: SystemBorrow<World>, K: SystemBorrow<World>,

source§

const PARAMS: &'static [SystemParamKind] = _

The data that the system borrows from the registry during execution
source§

fn run(self, world: &World) -> TReturn

Runs the function in the given registry.
source§

impl<TFunc, A, B, C, D, E, F, G, H, I, J, K, L, TReturn> Run<World, (A, B, C, D, E, F, G, H, I, J, K, L), TReturn> for TFunc
where TFunc: FnOnce(A, B, C, D, E, F, G, H, I, J, K, L) -> TReturn + FnOnce(<A as SystemParam>::Param<'_>, <B as SystemParam>::Param<'_>, <C as SystemParam>::Param<'_>, <D as SystemParam>::Param<'_>, <E as SystemParam>::Param<'_>, <F as SystemParam>::Param<'_>, <G as SystemParam>::Param<'_>, <H as SystemParam>::Param<'_>, <I as SystemParam>::Param<'_>, <J as SystemParam>::Param<'_>, <K as SystemParam>::Param<'_>, <L as SystemParam>::Param<'_>) -> TReturn, A: SystemBorrow<World>, B: SystemBorrow<World>, C: SystemBorrow<World>, D: SystemBorrow<World>, E: SystemBorrow<World>, F: SystemBorrow<World>, G: SystemBorrow<World>, H: SystemBorrow<World>, I: SystemBorrow<World>, J: SystemBorrow<World>, K: SystemBorrow<World>, L: SystemBorrow<World>,

source§

const PARAMS: &'static [SystemParamKind] = _

The data that the system borrows from the registry during execution
source§

fn run(self, world: &World) -> TReturn

Runs the function in the given registry.
source§

impl<TFunc, A, B, C, D, E, F, G, H, I, J, K, L, M, TReturn> Run<World, (A, B, C, D, E, F, G, H, I, J, K, L, M), TReturn> for TFunc
where TFunc: FnOnce(A, B, C, D, E, F, G, H, I, J, K, L, M) -> TReturn + FnOnce(<A as SystemParam>::Param<'_>, <B as SystemParam>::Param<'_>, <C as SystemParam>::Param<'_>, <D as SystemParam>::Param<'_>, <E as SystemParam>::Param<'_>, <F as SystemParam>::Param<'_>, <G as SystemParam>::Param<'_>, <H as SystemParam>::Param<'_>, <I as SystemParam>::Param<'_>, <J as SystemParam>::Param<'_>, <K as SystemParam>::Param<'_>, <L as SystemParam>::Param<'_>, <M as SystemParam>::Param<'_>) -> TReturn, A: SystemBorrow<World>, B: SystemBorrow<World>, C: SystemBorrow<World>, D: SystemBorrow<World>, E: SystemBorrow<World>, F: SystemBorrow<World>, G: SystemBorrow<World>, H: SystemBorrow<World>, I: SystemBorrow<World>, J: SystemBorrow<World>, K: SystemBorrow<World>, L: SystemBorrow<World>, M: SystemBorrow<World>,

source§

const PARAMS: &'static [SystemParamKind] = _

The data that the system borrows from the registry during execution
source§

fn run(self, world: &World) -> TReturn

Runs the function in the given registry.
source§

impl<TFunc, A, B, C, D, E, F, G, H, I, J, K, L, M, N, TReturn> Run<World, (A, B, C, D, E, F, G, H, I, J, K, L, M, N), TReturn> for TFunc
where TFunc: FnOnce(A, B, C, D, E, F, G, H, I, J, K, L, M, N) -> TReturn + FnOnce(<A as SystemParam>::Param<'_>, <B as SystemParam>::Param<'_>, <C as SystemParam>::Param<'_>, <D as SystemParam>::Param<'_>, <E as SystemParam>::Param<'_>, <F as SystemParam>::Param<'_>, <G as SystemParam>::Param<'_>, <H as SystemParam>::Param<'_>, <I as SystemParam>::Param<'_>, <J as SystemParam>::Param<'_>, <K as SystemParam>::Param<'_>, <L as SystemParam>::Param<'_>, <M as SystemParam>::Param<'_>, <N as SystemParam>::Param<'_>) -> TReturn, A: SystemBorrow<World>, B: SystemBorrow<World>, C: SystemBorrow<World>, D: SystemBorrow<World>, E: SystemBorrow<World>, F: SystemBorrow<World>, G: SystemBorrow<World>, H: SystemBorrow<World>, I: SystemBorrow<World>, J: SystemBorrow<World>, K: SystemBorrow<World>, L: SystemBorrow<World>, M: SystemBorrow<World>, N: SystemBorrow<World>,

source§

const PARAMS: &'static [SystemParamKind] = _

The data that the system borrows from the registry during execution
source§

fn run(self, world: &World) -> TReturn

Runs the function in the given registry.
source§

impl<TFunc, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, TReturn> Run<World, (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O), TReturn> for TFunc
where TFunc: FnOnce(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O) -> TReturn + FnOnce(<A as SystemParam>::Param<'_>, <B as SystemParam>::Param<'_>, <C as SystemParam>::Param<'_>, <D as SystemParam>::Param<'_>, <E as SystemParam>::Param<'_>, <F as SystemParam>::Param<'_>, <G as SystemParam>::Param<'_>, <H as SystemParam>::Param<'_>, <I as SystemParam>::Param<'_>, <J as SystemParam>::Param<'_>, <K as SystemParam>::Param<'_>, <L as SystemParam>::Param<'_>, <M as SystemParam>::Param<'_>, <N as SystemParam>::Param<'_>, <O as SystemParam>::Param<'_>) -> TReturn, A: SystemBorrow<World>, B: SystemBorrow<World>, C: SystemBorrow<World>, D: SystemBorrow<World>, E: SystemBorrow<World>, F: SystemBorrow<World>, G: SystemBorrow<World>, H: SystemBorrow<World>, I: SystemBorrow<World>, J: SystemBorrow<World>, K: SystemBorrow<World>, L: SystemBorrow<World>, M: SystemBorrow<World>, N: SystemBorrow<World>, O: SystemBorrow<World>,

source§

const PARAMS: &'static [SystemParamKind] = _

The data that the system borrows from the registry during execution
source§

fn run(self, world: &World) -> TReturn

Runs the function in the given registry.
source§

impl<TFunc, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, TReturn> Run<World, (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P), TReturn> for TFunc
where TFunc: FnOnce(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P) -> TReturn + FnOnce(<A as SystemParam>::Param<'_>, <B as SystemParam>::Param<'_>, <C as SystemParam>::Param<'_>, <D as SystemParam>::Param<'_>, <E as SystemParam>::Param<'_>, <F as SystemParam>::Param<'_>, <G as SystemParam>::Param<'_>, <H as SystemParam>::Param<'_>, <I as SystemParam>::Param<'_>, <J as SystemParam>::Param<'_>, <K as SystemParam>::Param<'_>, <L as SystemParam>::Param<'_>, <M as SystemParam>::Param<'_>, <N as SystemParam>::Param<'_>, <O as SystemParam>::Param<'_>, <P as SystemParam>::Param<'_>) -> TReturn, A: SystemBorrow<World>, B: SystemBorrow<World>, C: SystemBorrow<World>, D: SystemBorrow<World>, E: SystemBorrow<World>, F: SystemBorrow<World>, G: SystemBorrow<World>, H: SystemBorrow<World>, I: SystemBorrow<World>, J: SystemBorrow<World>, K: SystemBorrow<World>, L: SystemBorrow<World>, M: SystemBorrow<World>, N: SystemBorrow<World>, O: SystemBorrow<World>, P: SystemBorrow<World>,

source§

const PARAMS: &'static [SystemParamKind] = _

The data that the system borrows from the registry during execution
source§

fn run(self, world: &World) -> TReturn

Runs the function in the given registry.

Auto Trait Implementations§

§

impl !Freeze for World

§

impl !RefUnwindSafe for World

§

impl Send for World

§

impl Sync for World

§

impl Unpin for World

§

impl !UnwindSafe for World

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Resource for T
where T: Send + Sync + 'static,

source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Upcasts self.
source§

fn as_any(&self) -> &(dyn Any + 'static)

Upcasts self.
source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Upcasts self.
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> Component for T
where T: Send + Sync + 'static,