pub struct EntitySystemSystemParamFunction<T: EntitySystem<In: Clone, Out = ()>>(pub T);Expand description
SystemParamFunction, every time it’s run, it iterates over all the
entities in the world that T can run on
and runs T for them. Input will be cloned for every run of T.
Tuple Fields§
§0: TTrait Implementations§
Source§impl<T: EntitySystem<In: Clone, Out = ()>> SystemParamFunction<IsEntitySystem> for EntitySystemSystemParamFunction<T>
impl<T: EntitySystem<In: Clone, Out = ()>> SystemParamFunction<IsEntitySystem> for EntitySystemSystemParamFunction<T>
Source§type In = <T as EntitySystem>::In
type In = <T as EntitySystem>::In
The input type to this system. See
System::In.Source§type Out = ()
type Out = ()
The return type of this system. See
System::Out.Source§type Param = (Query<'static, 'static, <T as EntitySystem>::Data, <T as EntitySystem>::Filter>, ParamSet<'static, 'static, (<T as EntitySystem>::Param,)>)
type Param = (Query<'static, 'static, <T as EntitySystem>::Data, <T as EntitySystem>::Filter>, ParamSet<'static, 'static, (<T as EntitySystem>::Param,)>)
The
SystemParam/s used by this system to access the World.Source§fn 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
Executes this system once. See
System::run or System::run_unsafe.Auto Trait Implementations§
impl<T> Freeze for EntitySystemSystemParamFunction<T>
impl<T> RefUnwindSafe for EntitySystemSystemParamFunction<T>
impl<T> Send for EntitySystemSystemParamFunction<T>
impl<T> Sync for EntitySystemSystemParamFunction<T>
impl<T> Unpin for EntitySystemSystemParamFunction<T>
impl<T> UnwindSafe for EntitySystemSystemParamFunction<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<In, Marker, T> EntitySystemIntoSystem<In, Marker> for T
impl<In, Marker, T> EntitySystemIntoSystem<In, Marker> for T
Source§fn into_system(self) -> impl System<In = In, Out = ()>
fn into_system(self) -> impl System<In = In, Out = ()>
Source§fn into_read_only_system(self) -> impl ReadOnlySystem
fn into_read_only_system(self) -> impl ReadOnlySystem
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<S, M, Out, E, B> IntoObserverSystem<E, B, M, Out> for Swhere
S: IntoSystem<Trigger<'static, E, B>, Out, M> + Send + 'static,
E: 'static,
B: Bundle,
<S as IntoSystem<Trigger<'static, E, B>, Out, M>>::System: ObserverSystem<E, B, Out>,
impl<S, M, Out, E, B> IntoObserverSystem<E, B, M, Out> for Swhere
S: IntoSystem<Trigger<'static, E, B>, Out, M> + Send + 'static,
E: 'static,
B: Bundle,
<S as IntoSystem<Trigger<'static, E, B>, Out, M>>::System: ObserverSystem<E, B, Out>,
Source§type System = <S as IntoSystem<Trigger<'static, E, B>, Out, M>>::System
type System = <S as IntoSystem<Trigger<'static, E, B>, Out, M>>::System
The type of
System that this instance converts into.Source§fn into_system(this: S) -> <S as IntoObserverSystem<E, B, M, Out>>::System
fn into_system(this: S) -> <S as IntoObserverSystem<E, B, M, Out>>::System
Turns this value into its corresponding
System.Source§impl<Marker, F> IntoSystemConfigs<Marker> for F
impl<Marker, F> IntoSystemConfigs<Marker> for F
Source§fn into_configs(self) -> NodeConfigs<Box<dyn System<Out = (), In = ()>>>
fn into_configs(self) -> NodeConfigs<Box<dyn System<Out = (), In = ()>>>
Convert into a
SystemConfigs.Source§fn in_set(
self,
set: impl SystemSet,
) -> NodeConfigs<Box<dyn System<Out = (), In = ()>>>
fn in_set( self, set: impl SystemSet, ) -> NodeConfigs<Box<dyn System<Out = (), In = ()>>>
Add these systems to the provided
set.Source§fn before<M>(
self,
set: impl IntoSystemSet<M>,
) -> NodeConfigs<Box<dyn System<Out = (), In = ()>>>
fn before<M>( self, set: impl IntoSystemSet<M>, ) -> NodeConfigs<Box<dyn System<Out = (), In = ()>>>
Source§fn after<M>(
self,
set: impl IntoSystemSet<M>,
) -> NodeConfigs<Box<dyn System<Out = (), In = ()>>>
fn after<M>( self, set: impl IntoSystemSet<M>, ) -> NodeConfigs<Box<dyn System<Out = (), In = ()>>>
Source§fn before_ignore_deferred<M>(
self,
set: impl IntoSystemSet<M>,
) -> NodeConfigs<Box<dyn System<Out = (), In = ()>>>
fn before_ignore_deferred<M>( self, set: impl IntoSystemSet<M>, ) -> NodeConfigs<Box<dyn System<Out = (), In = ()>>>
Run before all systems in
set. Read moreSource§fn after_ignore_deferred<M>(
self,
set: impl IntoSystemSet<M>,
) -> NodeConfigs<Box<dyn System<Out = (), In = ()>>>
fn after_ignore_deferred<M>( self, set: impl IntoSystemSet<M>, ) -> NodeConfigs<Box<dyn System<Out = (), In = ()>>>
Run after all systems in
set. Read moreSource§fn distributive_run_if<M>(
self,
condition: impl Condition<M> + Clone,
) -> NodeConfigs<Box<dyn System<Out = (), In = ()>>>
fn distributive_run_if<M>( self, condition: impl Condition<M> + Clone, ) -> NodeConfigs<Box<dyn System<Out = (), In = ()>>>
Add a run condition to each contained system. Read more
Source§fn run_if<M>(
self,
condition: impl Condition<M>,
) -> NodeConfigs<Box<dyn System<Out = (), In = ()>>>
fn run_if<M>( self, condition: impl Condition<M>, ) -> NodeConfigs<Box<dyn System<Out = (), In = ()>>>
Source§fn ambiguous_with<M>(
self,
set: impl IntoSystemSet<M>,
) -> NodeConfigs<Box<dyn System<Out = (), In = ()>>>
fn ambiguous_with<M>( self, set: impl IntoSystemSet<M>, ) -> NodeConfigs<Box<dyn System<Out = (), In = ()>>>
Suppress warnings and errors that would result from these systems having ambiguities
(conflicting access but indeterminate order) with systems in
set.Source§fn ambiguous_with_all(self) -> NodeConfigs<Box<dyn System<Out = (), In = ()>>>
fn ambiguous_with_all(self) -> NodeConfigs<Box<dyn System<Out = (), In = ()>>>
Suppress warnings and errors that would result from these systems having ambiguities
(conflicting access but indeterminate order) with any other system.
Source§fn chain(self) -> NodeConfigs<Box<dyn System<Out = (), In = ()>>>
fn chain(self) -> NodeConfigs<Box<dyn System<Out = (), In = ()>>>
Treat this collection as a sequence of systems. Read more
Source§fn chain_ignore_deferred(
self,
) -> NodeConfigs<Box<dyn System<Out = (), In = ()>>>
fn chain_ignore_deferred( self, ) -> NodeConfigs<Box<dyn System<Out = (), In = ()>>>
Treat this collection as a sequence of systems. Read more
Source§impl<Marker, F> IntoSystemSet<(IsFunctionSystem, Marker)> for Fwhere
Marker: 'static,
F: SystemParamFunction<Marker>,
impl<Marker, F> IntoSystemSet<(IsFunctionSystem, Marker)> for Fwhere
Marker: 'static,
F: SystemParamFunction<Marker>,
Source§type Set = SystemTypeSet<FunctionSystem<Marker, F>>
type Set = SystemTypeSet<FunctionSystem<Marker, F>>
The type of
SystemSet this instance converts into.Source§fn into_system_set(
self,
) -> <F as IntoSystemSet<(IsFunctionSystem, Marker)>>::Set
fn into_system_set( self, ) -> <F as IntoSystemSet<(IsFunctionSystem, Marker)>>::Set
Converts this instance to its associated
SystemSet type.Source§impl<T, M> MarkedEntitySystem<(IsSystemParamFunction, M)> for Twhere
T: SystemParamFunction<M>,
impl<T, M> MarkedEntitySystem<(IsSystemParamFunction, M)> for Twhere
T: SystemParamFunction<M>,
Source§type Data = ()
type Data = ()
First generic argument of the
Data param of the function.
Converted to EntitySystem::DataSource§type Param = <T as SystemParamFunction<M>>::Param
type Param = <T as SystemParamFunction<M>>::Param
SystemParams of the functionSource§type Out = <T as SystemParamFunction<M>>::Out
type Out = <T as SystemParamFunction<M>>::Out
Output of the function
Source§fn run(
&mut self,
input: <T as MarkedEntitySystem<(IsSystemParamFunction, M)>>::In,
_data_value: <<T as MarkedEntitySystem<(IsSystemParamFunction, M)>>::Data as WorldQuery>::Item<'_>,
param_value: <<T as MarkedEntitySystem<(IsSystemParamFunction, M)>>::Param as SystemParam>::Item<'_, '_>,
) -> <T as MarkedEntitySystem<(IsSystemParamFunction, M)>>::Out
fn run( &mut self, input: <T as MarkedEntitySystem<(IsSystemParamFunction, M)>>::In, _data_value: <<T as MarkedEntitySystem<(IsSystemParamFunction, M)>>::Data as WorldQuery>::Item<'_>, param_value: <<T as MarkedEntitySystem<(IsSystemParamFunction, M)>>::Param as SystemParam>::Item<'_, '_>, ) -> <T as MarkedEntitySystem<(IsSystemParamFunction, M)>>::Out
Executes this system once.