pub trait SystemParamFunction<Marker> {
type In;
type Out;
type Param: SystemParam + 'static;
// Required method
fn run(
&mut self,
input: Self::In,
param_value: SystemParamItem<'_, '_, Self::Param>,
) -> Self::Out;
}Available on crate feature
ecs only.Expand description
A function that takes a SystemParam as input.
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: SystemParam + 'static
type Param: SystemParam + 'static
The SystemParam.
Required Methods§
Sourcefn run(
&mut self,
input: Self::In,
param_value: SystemParamItem<'_, '_, Self::Param>,
) -> Self::Out
fn run( &mut self, input: Self::In, param_value: SystemParamItem<'_, '_, Self::Param>, ) -> Self::Out
Run the function with the provided SystemParam’s item.