Trait valence::ecs::system::ExclusiveSystemParamFunction
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: <Self::Param as ExclusiveSystemParam>::Item<'_>,
) -> 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§
type In
type In
The input type to this system. See System::In
.
type Out
type Out
The return type of this system. See System::Out
.
type Param: ExclusiveSystemParam
type Param: ExclusiveSystemParam
The ExclusiveSystemParam
’s defined by this system’s fn
parameters.
Required Methods§
fn run(
&mut self,
world: &mut World,
input: Self::In,
param_value: <Self::Param as ExclusiveSystemParam>::Item<'_>,
) -> Self::Out
fn run( &mut self, world: &mut World, input: Self::In, param_value: <Self::Param as ExclusiveSystemParam>::Item<'_>, ) -> Self::Out
Executes this system once. See System::run
.