Trait bevy_ecs::system::ExclusiveSystemParamFunction
source · pub trait ExclusiveSystemParamFunction<Marker>: Send + Sync + 'static {
type In;
type Out;
type Param: ExclusiveSystemParam;
// Required method
fn run(
&mut self,
world: &mut World,
input: Self::In,
param_value: ExclusiveSystemParamItem<'_, Self::Param>
) -> Self::Out;
}
Expand description
A trait implemented for all exclusive system functions that can be used as System
s.
This trait can be useful for making your own systems which accept other systems, sometimes called higher order systems.
Required Associated Types§
sourcetype In
type In
The input type to this system. See System::In
.
sourcetype Out
type Out
The return type of this system. See System::Out
.
sourcetype Param: ExclusiveSystemParam
type Param: ExclusiveSystemParam
The ExclusiveSystemParam
/s defined by this system’s fn
parameters.
Required Methods§
sourcefn run(
&mut self,
world: &mut World,
input: Self::In,
param_value: ExclusiveSystemParamItem<'_, Self::Param>
) -> Self::Out
fn run( &mut self, world: &mut World, input: Self::In, param_value: ExclusiveSystemParamItem<'_, Self::Param> ) -> Self::Out
Executes this system once. See System::run
.